Skip to Content
avatar image
Former Member

getLocale

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 13, 2006 at 02:39 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 14, 2006 at 07:43 AM

    Thanks

    This solve the problem 😊

    Add comment
    10|10000 characters needed characters exceeded