Skip to Content
Menu
This question has been flagged

I know a lot of people have problems with the date format in emails. 

Here's how I bypass the problem:

For Sale Orders datetime exemple :

Date : ${object.date_order.split(" ")[-0].split("-")[-1] + "/" + object.date_order.split("-")[-2] + "/" + object.date_order.split("-")[0]} 

I share that because I searched a lot before finding the solution.

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 15
3520
0
Mar 15
5102
2
Jan 24
2674
2
Jun 22
4609
2
Jun 18
6143