I need to format a date as yyyy-MM-dd\'T\'HH:mm:ss.SSS\'Z\' as specified by Parse\'s REST API for Facebook. I was wondering what the most lightweight
yyyy-MM-dd\'T\'HH:mm:ss.SSS\'Z\'
You can use javax.xml.bind.DatatypeConverter class
javax.xml.bind.DatatypeConverter
DatatypeConverter.printDateTime & DatatypeConverter.parseDateTime
DatatypeConverter.printDateTime
DatatypeConverter.parseDateTime