The parse exception you get is because of the extra T
in your date(2013-03-04T14:37:15
).
You can either remove that extra 'T' and parse the date with your current date format,
Or if you need to parse it with the T
, change your format to parse the literal T
as well,
new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");