Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
22771 Vistas
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
jul 23
27889
2
jun 22
6129
2
sept 21
5246
1
nov 20
8513
2
mar 19
6505