Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
3787 Visualizações

hello, 

How can i transform my date from : 1/05/2012 16:10:00    to  2012-05-01 16:10:00.0000 ? 

I would like change with a python code 

Thanks 

Avatar
Cancelar
Melhor resposta

Have you tried by changing language locale (Setting > Translation > Language and change date format

%Y-%m-%d

) ?

Avatar
Cancelar
Melhor resposta

Try this :

transfomation_date= datetime.now().date()


Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
abr. 20
2213
3
dez. 23
45604
1
mar. 17
28821
python in v9 Resolvido
1
nov. 15
6064
1
mai. 24
1520