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
DATABASE ROW UPDATE
How to compare two string
Is there any way to max character length of record source property on a form?
how to know if this software developed under visual studio .net environment, or vb6 environment,
How do I identify user logon / logoff event in a domain
Why Read-only powerpoint 2007 file is editable in Powerpoint 2003
SQL IN subquery vs another method, chained where
proc and package for simple code
mysql_real_escape_string equivalent when you dont have a db connection
DropDownList value does not get inserted into sql table