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
How to create a log file (log_<date>.txt) for a DOS batch script
Store form data in Sharepoint
How to create CENTOS 5 rescue disk with GRUB and Kernel 2.6 inside ?
Many Services not starting on Vista Boot
How to send email on mysql insert error?
Excel Printing Error on Ne07
VBA - changed printer settings not always right executed
Error joining domain
Company Web error
Will 6GB pagefile size makes sense on windows 2008 32 bit OS ?