Display date in another language


#1

Hello, I'm working on a weather forcast dashboard and I'm wondering if I can display the names of days and months in another language than English, French in my case

{{msg.payload | date:"EEE, d MMMM yyyy"}}

image in this case I want it to be Dim, 17 Mars 2019. How can I get to that ?!


#2

You can try my node-red-contrib-moment node.

These setttings for example:

Give you this output

image


#3

Thank you, it worked but still need the name of the day though


#4

That's not a problem, you just need to adjust the output format. If you check the help in the sidebar, it gives a link to the page that gives you all of the details you need.


#5

Thanks a lot, it worked by using this format ddd DD MMM YYYY
image :grinning: