Java Time in GMT getGMTDateFormat(String format)

Here you can find the source of getGMTDateFormat(String format)

Description

get GMT Date Format

License

Apache License

Declaration

public static SimpleDateFormat getGMTDateFormat(String format) 

Method Source Code

//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
}

Related

  1. getGMT(Date date)
  2. getGMT8Time()
  3. getGMTByDisplay(String tm)
  4. getGMTCalendarAtTime(String sTime)
  5. getGMTDate()
  6. getGMTDateFormat(String strFormat)
  7. getGMTDateString(Date date)
  8. getGMTDatetime(Date datetime)
  9. getGMTDatetimeFormat()