Package wt.util

Class WTStandardDateFormat

java.lang.Object
wt.util.WTStandardDateFormat

public class WTStandardDateFormat extends Object
WTStandardDateFormat

This class provides methods to create display strings from Date objects. The methods may take as arguments, not only a Date, but also various combinations of format type, format string, Locale and TimeZone.

There are currently two standard formats defined: "long" and "short". "long" is the default format for methods which do not take a format argument. The format strings are in wt.util.utilResource.rbInfo.

Locale and TimeZone values default to those provided by WTContext methods.

Examples:

WTStandardDateFormat.format(myDate)
returns: "1998-05-28 14:22:35 CST"
WTStandardDateFormat.format(myDate, WTStandardDateFormat.SHORT_STANDARD_DATE_FORMAT)
returns: "98 May 28 14:22"


Supported API: true
Extendable: false
See Also: