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
Driving Distance between Postcodes
RemoteApp and Email Settings not Saving
blocking internet access to a particular computer on my network
How can I Return a fictitious row into a result set?
Unable to create the website error
windows search in taskbar
Access 2007 save date/time when exiting form
Macro to enable a specific add in
Displaying List from another SubSite - SharePoint 2010
SQL 2005 Update Multiple Records