cancel
Showing results for 
Search instead for 
Did you mean: 

How change the date format depends upon Locale

former_member225041
Participant
0 Kudos

Hi,

I want to change the date format depends upon the application being used in different Locale.

If i am knowing in which Locale it is getting used then i can do it by,

DateFormat df_fr = DateFormat.getDateInstance(DateFormat.FULL,Locale.CANADA);

But how would i come to know in which Locale the application is getting used ? and depending i can change the date formats ?

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Hullen
Advisor
Advisor
0 Kudos

WDResourceHandler.getCurrentSessionLocale();

I believe this returns the currently used Locale, so that might be what you are looking for?

former_member225041
Participant
0 Kudos

Thank you very much !!!

I got the answer.

Answers (0)