public String getIsoTimeStamp ( ) { TimeZone tz = TimeZone . getTimeZone ( "UTC" ) ; DateFormat df = new SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ssX" ) ; df . setTimeZone ( tz ) ; String nowAsISO = df . format ( new Date ( ) ) ; return nowAsISO ; }
get a current IsoTimeStamp