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
ADMT and sid mapping
MS Excel 2010 and MS Analysis Services 2005 XML Parser Error
was updating 4.0 to 4.1 and got error can't start any vm's
csv row limit
Check syntax of SQL Select statement in access vba code
type="checkbox" and alert in javascript
Help adding minutes to time value
Cisco Wireless Access Point - Guest & Internal SSIDs
Best way to make users stay within ranges and warn users of conflicts
User.Identity.Name s not stored in table - Store Procedure