Although I have not yet tried to do this with russian.  The most reliable
way I have found to localize a date is to use the DateFormat object.  In
conjuction with asking for a formatted date in the format of either: SHORT,
MEDIUM, LONG, or FULL.  This slightly limits the formats available but is
supposed to guarantee that a properly formatted date in the specified
language is returned.  

-----Original Message-----
From: BERTIN,LUDOVIC (Non-HP-France,ex1)
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 11:15 AM
To: JRun-Talk
Subject: problem to show russian dates


Hi,

I have to show russian dates on screens, so I use the following code :

<%@ page import="java.util.GregorianCalendar"%>
<%@ page import="java.text.SimpleDateFormat"%>

<%
        SimpleDateFormat sdf = new SimpleDateFormat ("d-MMM-yyyy", new
Locale("ru",""));
        Calendar g = new GregorianCalendar(2000, 11, 14);
%>
<%=sdf.format(g.getTime())%>

and the result is :
14-???-2000

Does anyone have en explication and a solution to the problem ?

Thanks
Ludovic BERTIN
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to