@malignois wrote:
Hello everyone,
I am formatting a date using toLocaleDateString, it works great when I test on the computer browser but when I test using Ionic View or if I deploy on my iPhone I have another result.
On the computer :
On Ionic View:
And the code I use:
var optionsDay = {day: "numeric"}; var optionsMonth = {month: "long"}; var day = obj.attributes.Date.toLocaleDateString("fr-FR", optionsDay); var month = obj.attributes.Date.toLocaleDateString("fr-FR", optionsMonth);
Posts: 1
Participants: 1