Microsoft
Software
Hardware
Network
Question : Localized Date format
we need to display date in spanish local, for that we are using below code, but the requirment is month of first character has to come in Capital, please don't suggest explicitly convert of first character of string.
SimpleDateFormat formater = new SimpleDateFormat("dd MMMM yyyy", new Locale("es"));
TimeZone tz = TimeZone.getTimeZone("Euro
pe/Paris")
;
formater.setTimeZone(tz);
System.out.println("Date = "+formater.format(new Date()));
Out put
Date = 27
mayo
2010
Answer : Localized Date format
This is the default format for that locale. If you need your own format, look into
http://java.sun.com/javase
/6/docs/ap
i/java/tex
t/spi/
Date
FormatSymb
olsProvide
r.html
Random Solutions
WinXP, Vista PE and, 2k3WDS?
Windows 7 Update Error
Removing WSUS from SBS 2008
Can I put a 800MHz bus CPU in a 533MHz bus motherboard?
Update table basxed on results of query
Email Server Software used in conjuction with SQL Server or MySQL database
E-Machines EL1200 BSOD at Startup - Windows XP SP2
What format should I save audio files to burn a CD that will play on most CD players?
Presario CQ50-215nr
Running Total in a multi row Query or Form