Java TimeZone Format getZfgcTimeZoneDateFormat(String timezone)

Here you can find the source of getZfgcTimeZoneDateFormat(String timezone)

Description

get Zfgc Time Zone Date Format

License

Open Source License

Declaration

public static SimpleDateFormat getZfgcTimeZoneDateFormat(String timezone) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;

import java.util.TimeZone;

public class Main {
    public static SimpleDateFormat getZfgcTimeZoneDateFormat(String timezone) {
        SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy z");
        sdf.setTimeZone(TimeZone.getTimeZone(timezone));

        return sdf;
    }/*from www  . jav  a2 s . c om*/
}

Related

  1. getString(Date dt, DateFormat df, TimeZone to)
  2. getTimeByZoneAndFormat(Date date, TimeZone zone, String format)
  3. getTimeWithFormat(String stringDate, String dateFormat, DateTimeZone timeZone, Locale locale)
  4. getTimezoneFormattedString(Date date, String timezone)
  5. getUserToServerDateTimeString(TimeZone timeZone, int dateFormat, int timeFormat, String date)
  6. resolveTimeZone(SimpleDateFormat sdf, String timezone)
  7. String2Date(String date, String formatPattern, Locale locale, TimeZone timeZone)
  8. string2Timezone(String srcFormater, String srcDateTime, String dstFormater, String dstTimeZoneId)
  9. toAPITimeString(Date date, String format, String timeZone)