python 格式化日期
#!/usr/bin/env python
import sys
import re
import datetime
dd = '2014-08-10'
da = datetime.datetime.strptime(dd,'%Y-%m-%d')
res = datetime.datetime.strftime(da, '%Y%m%d')
print res
#!/usr/bin/env python
import sys
import re
import datetime
dd = '2014-08-10'
da = datetime.datetime.strptime(dd,'%Y-%m-%d')
res = datetime.datetime.strftime(da, '%Y%m%d')
print res