Format the date in ISO format using javax.xml.bind.DatatypeConverter
as pattern X is Java 7 and Z is not really ISO.