Fernandes:
> java.text.ParseException: Unparseable date:
> "2009-11-20T00:00:00+01:00"
> java.text.DateFormat.parse(Unknown Source)
I have seen this behavior before.
The date format you have is an ISO format, but
the Java DateFormat class does not parse dates
in that format.
I think you will need to manually pull the
date out of the request params and format
it to something DateFormat understands.
Something like this:
2009-11-20 00:00:00 +0100
Here is a sample code:
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss
ZZZZZ");
Date date = dateFormat.parse("2009-11-20 00:00:00 +0100");
System.out.println(DateFormat.getDateTimeInstance(DateFormat.LONG,
DateFormat.LONG).format(date));
I hope this helps,
Neil
--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
CentOS 5.4 VPS with unmetered bandwidth only $25/month!
7 day no risk trial, Google Checkout accepted
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]