public static String dateTimeFormat(long dateTime){
  DateFormat iso8601=new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'",Locale.US);
  iso8601.setTimeZone(UTC);
  return iso8601.format(dateTime);
}

public static String dateTimeFormat ( long dateTime ) { DateFormat iso8601 = new SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ss'Z'" , Locale . US ) ; iso8601 . setTimeZone ( UTC ) ; return iso8601 . format ( dateTime ) ; }
formats a given date + time value to an iso 8601 string .
