Reputation: 2551
I have a date-string like this:
2013-01-04T15:55:51.217+01:00
I can get a date like this:
2013-01-04T15:55:51
with SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").
But cant find something for the whole date-string with the milliseconds and Timezone.
Upvotes: 0
Views: 1663
Reputation: 2579
Try this:
SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss:SSS z")
Also, take a look at this (I am assuming you are using Java 6)
Upvotes: 0