In the pos.xml file, how do I change the date format to display dd/mm/yyyy ?
<div class="pos-center-align"><t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +
Date.CultureInfo.formatPatterns.longTime)"/> <t t-esc="order.get('name')"/></div>
<t t-esc="new Date().getDate()+'/'+new Date().getMonth()+1+'/'+new Date().getFullYear()"/>
It's not an elegant way to do it, but seeing as no one else has answered, I thought I'll comment.
I would recommmend you to test it with different dates to make sure it does not break.
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
|Asked: 1/26/15, 6:20 PM|
|Seen: 964 times|
|Last updated: 12/10/15, 11:07 PM|