I have a date
object in Python and I want to convert it to datetime
object with one simple step.
There is some not interesting solution like
datetime.datetime(my_date.year, my_date.month, my_date.day)
but I want a better way to solve this.
I have a date
object in Python and I want to convert it to datetime
object with one simple step.
There is some not interesting solution like
datetime.datetime(my_date.year, my_date.month, my_date.day)
but I want a better way to solve this.