Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to print date correctly according to language on Clock Face ?

Hi, 

I'm trying to create a clock face, which show complete date.

Is there a way to show date in correct order according to language ?

 

For example:

In english : Friday, December 20, 2019

In French: Vendredi 20 décembre 2019.

 

Month and day are inverted. Is there a way to handle it ?

Thank for answers.

Best Answer
0 Votes
1 REPLY 1

I don't know any easy/automatic way. I format the date explicitly, based on an attribute that I initialise like this:

monthFirst:locale.language.toLowerCase() === "en-us"

I provide a setting for the user to be able to change this.

Peter McLennan
Gondwana Software
Best Answer
0 Votes