How to convert string into data time value

Question

write a code to convert string into date time value

in progress 0
anilkrishna1000 55 years 1 Answer 696 views Member 0

Answer ( 1 )

  1. import time
    str=”25/11/2020
    datetime_value=time.strptime(str,”%d/%m/%Y”)
    print(datetime_value)

Leave an answer

Browse
Browse