Share
How to convert string into data time value
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
write a code to convert string into date time value
Answer ( 1 )
import time
str=”25/11/2020
datetime_value=time.strptime(str,”%d/%m/%Y”)
print(datetime_value)