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)
>Solution :
There is no function provided which accepts a string argument to specify the month. But you can use the strptime class method to parse a string that contains a month name into a datetime value.
>>> from datetime import datetime
>>> datetime.strptime("2020 May 17", "%Y %b %d")
datetime.datetime(2020, 5, 17, 0, 0)