Here you can find the source of getGMTDateFormat(String format)
public static SimpleDateFormat getGMTDateFormat(String format)
//package com.java2s; // Licensed to the Apache Software Foundation (ASF) under one import java.text.SimpleDateFormat; import java.util.TimeZone; public class Main { public static SimpleDateFormat getGMTDateFormat(String format) { SimpleDateFormat df = new SimpleDateFormat(format); df.setTimeZone(TimeZone.getTimeZone("GMT")); return df; }//from w ww. j a v a2 s . c o m }