Hello,
I have this in odoo 10, how can i have the same thing in odoo 12?
<span t-esc="time.strftime('%d-%m-%Y', time.strptime(ddt.date,'%Y-%m-%d %H:%M:%S'))"
style="color:{{style.cust_color}};"/>Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
I have this in odoo 10, how can i have the same thing in odoo 12?
<span t-esc="time.strftime('%d-%m-%Y', time.strptime(ddt.date,'%Y-%m-%d %H:%M:%S'))"
style="color:{{style.cust_color}};"/>Thanks.
My problem is that I have to format the date in qweb ... I need to have the format day / month / year .. how can I do?
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Please use a meaningful title.
Convert datetime.date to datetime.datetime: https://goo.gl/VNJgWS