import datetime

d= datetime.date(2018,7,24) # To get date from string
print(d)

tday=datetime.date.today() # to get current date
print(tday)

tday=datetime.date.today() # to get current year
print(tday.year)

tday=datetime.date.today() # to get current Month
print(tday.month)

tday=datetime.date.today() # to get current day
print(tday.day)

#To get day of the week

tday=datetime.date.today() # to get current day
print('weekday')
print(tday.weekday())# Monday 0 sunday 6
print('isoweekday')
print(tday.isoweekday())# Monday 1 sunday 7







b1831560471cf7ef8fc974066666b43a2bcb9ac4
<mask token>

<mask token>
print(d)
<mask token>
print(tday)
<mask token>
print(tday.year)
<mask token>
print(tday.month)
<mask token>
print(tday.day)
<mask token>
print('weekday')
print(tday.weekday())
print('isoweekday')
print(tday.isoweekday())

<mask token>
d = datetime.date(2018, 7, 24)
print(d)
tday = datetime.date.today()
print(tday)
tday = datetime.date.today()
print(tday.year)
tday = datetime.date.today()
print(tday.month)
tday = datetime.date.today()
print(tday.day)
tday = datetime.date.today()
print('weekday')
print(tday.weekday())
print('isoweekday')
print(tday.isoweekday())

import datetime
d = datetime.date(2018, 7, 24)
print(d)
tday = datetime.date.today()
print(tday)
tday = datetime.date.today()
print(tday.year)
tday = datetime.date.today()
print(tday.month)
tday = datetime.date.today()
print(tday.day)
tday = datetime.date.today()
print('weekday')
print(tday.weekday())
print('isoweekday')
print(tday.isoweekday())

import datetime

d= datetime.date(2018,7,24) # To get date from string
print(d)

tday=datetime.date.today() # to get current date
print(tday)

tday=datetime.date.today() # to get current year
print(tday.year)

tday=datetime.date.today() # to get current Month
print(tday.month)

tday=datetime.date.today() # to get current day
print(tday.day)

#To get day of the week

tday=datetime.date.today() # to get current day
print('weekday')
print(tday.weekday())# Monday 0 sunday 6
print('isoweekday')
print(tday.isoweekday())# Monday 1 sunday 7






