toLocaleDateString with options

Hi,

I’m trying to add the current date in a specific local format. From the ‘functions’ panel I can select [[Now.toLocaleDateString()]] and I can add the argument for the locale e.g. ‘es-ES’, and it works. However when I add some options for the formatting (as described in the Javascript reference Axure doesn’t recognise the function anymore and instead it displays the actual text of the function e.g. “[[Now.toLocaleDateString(‘es-ES’,{ weekday: ‘short’, year: ‘numeric’, month: ‘short’, day: ‘numeric’ })]]”

Any ideas?

Thanks!

If it doesn’t work then Axure probably just doesn’t support it. For example, with String.replace() you can only match on a string in Axure, and not RegEx.

Thanks for the response. Yes, that’s what I was thinking…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.