When showing date/times in a page it does it in English.
. In the image it shows the month like “May”, where it should be “mei”.
I would like to see a feature enabling me to show/format it in different languages e.g. in Dutch
ben
December 30, 2018, 12:49pm
2
I totally agree. As a work around, I have avoided using the written month and used 09-05-2019
instead.
didnt it work with that post?
I had success with Dateformat() in expressions but I‘m also wondering how to:
Make monday as the beginning of my week
Change Language to german or others and not only english Weeks/Months like „december etc.“
Stackoverflow says:
var march = moment('2017-03')
console.log(march.format('MMMM')) // 'March'
moment.locale('de') // returns the new locale, in this case 'de'
console.log(march.format('MMMM')) // 'March' still, since the instance was before the locale was set
var deMarch = moment('20…
1 Like
Teodor
Split this topic
December 19, 2019, 4:58pm
4
11 posts were split to a new topic: How to format dates?
Teodor
Split this topic
December 19, 2019, 5:00pm
10
A post was merged into an existing topic: How to format dates?
George
December 19, 2019, 4:46pm
13
You can use momentjs included framework for localization and a formatter as explained in:
Here a custom formatter that uses moment.js for formatting the date.
Place following script in a js file or script block:
dmx.Formatter('string', 'formatDate2', function(val, format) {
return moment(val).format(format);
});
Now use it like:
{{ next_birthday.formatDate2("dddd, MMMM Do YYYY") }}
Teodor
Split this topic
December 19, 2019, 5:06pm
14
A post was merged into an existing topic: How to format dates?