Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

transformation of date

By
Coralie Cardon
on 2/15/16, 5:38 AM 334 views

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 

0
Pinakin Nayi (pna)
On 3/28/16, 9:00 AM

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

%Y-%m-%d

) ?

0
badr elmar
On 3/28/16, 8:50 AM

Try this :

transfomation_date= datetime.now().date()


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/15/16, 5:38 AM
Seen: 334 times
Last updated: 3/28/16, 9:00 AM