Android Date Format String Create getGMTDateFormat()

Here you can find the source of getGMTDateFormat()

Description

get GMT Date Format

Declaration

public static DateFormat getGMTDateFormat() 

Method Source Code

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

Related

  1. getFormat(String pattern)
  2. getDateFormatSymbols(Locale locale)
  3. changeFormat(String gmtString, String orgFormat, String format)
  4. convertFormat(String src, String f1, String f2)
  5. dateFormatToString(int date, Context context)
  6. getSimpleDateFormat()
  7. getSimpleDateFormatter()
  8. getDateByFormat(String strDate, String format)
  9. getStringByFormat(String strDate, String format)