Automatic date, wrong language!

Hi,

I’m using [[Now.addDays(-1).getDate()]] [[Now.addDays(-1).getMonthName().toLowerCase()]] [[Now.addDays(-1).getFullYear()]] to get a date and the result is e.g. “26 july 2018”. But I would like it to be “26 juli 2018”, the date in the Dutch language. Any ideas how to accomplish this?

It looks a bit silly but you could do something like this:

[[Now.addDays(-1).getMonthName().toLowerCase().replace('january','enero').replace('february','febrero').replace('march','marzo').replace('april','abril')]]

And continue for every month. I used Spanish month names because I don’t know Dutch but you can swap them out. It’s probably easier than trying to mess with localization, if that’s even an option in Axure’s implementation of date functions.

Brilliant! Works like a charm, thanks for your help.