Odoo Help

0

transformation of date

By
Coralie Cardon
on 2/15/16, 5:38 AM 472 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()


About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

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