PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import datetime
"""
/////////////////////////////////
Find out how many days are left
till a specified date.
Enter a date of your choice using
the following format DD.MM.CCYY
Example:
21.10.2017
Make sure that you enter the date
correctly then watch the magic.
/////////////////////////////////
"""
# Declare global variables
date = datetime.datetime
now = date.now()
format = "%d.%m.%Y"
# Establish current year day
cDate = str(now.day)+"."+str(now.month)+"."+str(now.year)
fdate = date.strptime(cDate,format)
tdate = fdate.timetuple()
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run