Functions-of-datetime-module
Functions-of-datetime-module
Function Example
ctime() from datetime import date
Str1= date(2021, 11, 24).ctime()
print("Value as string: ", Str1)
Str2= date(2022, 7, 12).ctime()
print("Value as string: ", Str2)
fromisocalendar() from datetime import date
iso_today = date.fromisocalendar(today.year ,49,6)
print(iso_today)
Discription: This method returns the ISO calendar date that is equivalent to the
given Gregorian calendar date, according to these specified parameters: