Skip to Content
Menu
This question has been flagged
1 Odpoveď
22817 Zobrazenia
Best Answer

Hello Giezel Esteves,

     Here is the python code to convert string to date.

        import datetime
        datetime.datetime.strptime('24052010', '%d%m%Y').date()
Here "24052010" is string.  you can pass a variable at here.
Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
3
júl 23
27931
2
jún 22
6146
2
sep 21
5282
1
nov 20
8556
2
mar 19
6527