-2

I have an xml. Which return some element. One of the element is date and the output format is 2014-06-02T00:00:00.000+07:00. Now I want to insert this time into access database using java.But I can't parse the xml date format into java. So I can't insert the date into access. How can I parse 2014-06-02T00:00:00.000+07:00 in java eclipse?

Nidheesh
  • 4,390
  • 29
  • 87
  • 150

1 Answers1

0

You could use SimpleDateFormat, with the format "yyyy-MM-dd'T'HH:mm:ss.SSSXXX".

Rahul
  • 44,383
  • 11
  • 84
  • 103
Smutje
  • 17,733
  • 4
  • 24
  • 41