Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import datetime
- from datetime import timedelta
- year = int(input('Enter year(yyyy): '))
- month = int(input('Enter month(mm): '))
- day = int(input('Enter day(dd): '))
- my_date = datetime.datetime(year,month,day)
- print('Date is: ', my_date)
- next_date = my_date + timedelta(days=1)
- print('Next date is: ', next_date)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement