Here you can find the source of createDateFormat(TimeZone timezone)
public static final DateFormat createDateFormat(TimeZone timezone)
//package com.java2s; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Locale; import java.util.TimeZone; public class Main { public static final DateFormat createDateFormat(TimeZone timezone) { SimpleDateFormat sdf = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.US); sdf.setTimeZone(timezone);//w w w. j a v a 2 s . co m return sdf; } }