Here you can find the source of parseGMT(String gmtTime)
public static Date parseGMT(String gmtTime) throws ParseException
//package com.java2s; //License from project: Open Source License import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; public class Main { public static SimpleDateFormat GMT_FORMAT = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss 'GMT'", Locale.UK); public static Date parseGMT(String gmtTime) throws ParseException { GMT_FORMAT.setTimeZone(TimeZone.getTimeZone("GMT")); return GMT_FORMAT.parse(gmtTime); }/* w w w.ja v a 2s . c o m*/ }