Java Date Format dateFormat(String df, TimeZone timeZone)

Here you can find the source of dateFormat(String df, TimeZone timeZone)

Description

date Format

License

Apache License

Declaration

public static SimpleDateFormat dateFormat(String df, TimeZone timeZone) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

import java.util.TimeZone;

public class Main {
    public static SimpleDateFormat dateFormat(String df, TimeZone timeZone) {
        SimpleDateFormat ret = new SimpleDateFormat(df);
        ret.setTimeZone(timeZone);//from w  w w .  ja v a2  s.co m
        return ret;
    }
}

Related

  1. dateFormat(long time)
  2. dateFormat(String date, String dateFormat)
  3. DateFormat(String dateStr, String oldPattern, String newPattern)
  4. dateformat(String dateTime)
  5. dateFormat(String datetime)
  6. dateFormat(String format, java.util.Date date)
  7. dateFormat(String format, java.util.Date date, String tz, Locale locale)
  8. dateFormat(String format, String defaultFormat)
  9. dateformat(String text, String format)