Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Issue with toLocaleDateString in iOS

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>