I found this example how to set time and covert back to readable form
import datetime
x = datetime.datetime(2020, 5, 17)
print(x.strftime("%Y %b %d"))
My question is how to set new date with Month
as string ?
Is it possible ? Is there some parameter/function for this ?
y = datetime.datetime(2020, May, 17)
Update: How can I show difference between two times only in days ?
x = datetime.datetime(2024, 5, 17)
now=datetime.now()
print('Time difference:', str(x-now))
Current output is :
Time difference: 416 days, 9:37:06.470952
OK , I got it
print('Time difference:', (x-now).days)