while parsing String of date to Date Object .
The code I am using is
CODE
SimpleDateFormat dateFormat = new SimpleDateFormat(" EEEE dd MMMM yyyy
HH:mm");
dateFormat.setTimeZone(TimeZone.getDefault());
date = dateFormat.parse(strDate);
The pattern I am using in the above code is for the date of format
"maandag 19 november 2001 5:48" only , but there are other formats
also .
Please help with the parsing , so that I can save all the dates in
single default timezone .
Thanks in advance.
Deepak
Sounds like you need more than one DateFormat created through
<http://java.sun.com/javase/6/docs/api/java/text/DateFormat.html#getDateInstance(int,%20java.util.Locale)>
or other 'Locale'-aware means.
--
Lew
>
>Please help with the parsing , so that I can save all the dates in
>single default timezone .
see http://mindprod.com/jgloss/calendar.html
After the date is parsed, it is in UTC, not a local timezone. When
you redisplay it, you tweak it with the timezone of the viewer.
--
Roedy Green Canadian Mind Products
http://mindprod.com
The future has already happened, it just isn�t evenly distributed.
~ William Gibson (born: 1948-03-17 age: 61)