Here you can find the source of getGMTDateFormat()
public static DateFormat getGMTDateFormat()
//package com.java2s; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Locale; import java.util.TimeZone; public class Main { public static DateFormat getGMTDateFormat() { DateFormat dateFormat = new SimpleDateFormat( "EEE MMM d HH:mm:ss z yyyy", Locale.ENGLISH); dateFormat.setTimeZone(TimeZone.getTimeZone("GMT")); return dateFormat; }//from www. j ava 2s.c o m }