Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import datetime
- start = '20171231'
- end = '20180101'
- start_date = datetime.datetime.strptime(start, '%Y%m%d')
- end_date = datetime.datetime.strptime(end, '%Y%m%d')
- working_date = start_date
- while working_date != end_date:
- pass
- working_date += datetime.timedelta(days=1)
Add Comment
Please, Sign In to add comment