Java Utililty Methods Now at GMT

List of utility methods to do Now at GMT

Description

The list of methods to do Now at GMT are organized into topic(s).

Method

StringgetNowAtGMT()
get Now At GMT
final Date currentTime = new Date();
final SimpleDateFormat sdf = new SimpleDateFormat("MM.dd.yyyy'T'hh:mm:ssa'.Zone:'z");
sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
return sdf.format(currentTime);