count_date="2017-05-31"
import datetime,time
count_date_format = datetime.datetime.strptime(count_date,'%Y-%m-%d')
delta = datetime.timedelta(days=1)
count_date_nextday_format = count_date_format + delta
count_date_nextday = count_date_nextday_format.strftime('%Y-%m-%d')
print count_date_nextday
count_date_monthstart = str(count_date_format.year)+ "-" + str(count_date_format.month) + "-01"
print count_date_monthstart
count_date_yearstart = str(count_date_format.year)+ "-" + "01" + "-01"
print count_date_yearstart
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""