cancel
Showing results for 
Search instead for 
Did you mean: 

getLocale

Former Member
0 Kudos

Hello there

Please, help me how to get current language on IE, not Windows itself, from WebDynpro App .

The best would be to get "Date" in form of template something like this: MM-dd-yyyy, in accordance with the current language in IE.

Message was edited by:

Stefan Stefanov

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can do something like:

IWDClientUser usr = WDClientUser.getLoggedInClientUser();
		
Date currDate = new Date(System.currentTimeMillis());
		
SimpleDateFormat dFormat = new SimpleDateFormat("MM-dd-yyyy",usr.getLocale());

dFormat.format(currDate);

Regards,

Satyajit.

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks

This solve the problem