I would like to retrieve the date format pattern according to the user Locale.

I  do the following to retrieve the Struts Locale :
Locale current=(Locale)this.pageContext.getSession().getAttribute(Globals.LOCALE_KEY);
if(current==null)
           current=Locale.US;

And now I would like to read something like : MM/DD/YYYY for US locale or DD/MM/YYYY for FR.
How can I do that?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to