How to get timestamp from a string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to get timestamp from a string?

How can I get year and month or timestamp from a long string using python?

15th Apr 2020, 8:27 PM
Abhishek Kumar
Abhishek Kumar - avatar
2 Answers
+ 3
That depends on the format of the string.
15th Apr 2020, 9:24 PM
inxanedev!
inxanedev! - avatar
+ 1
I think using regular expressions would help
15th Apr 2020, 9:06 PM
Justus
Justus - avatar