public class DateFormatManager extends Object
Constructor and Description |
---|
DateFormatManager() |
DateFormatManager(Locale locale) |
DateFormatManager(Locale locale,
String pattern) |
DateFormatManager(String pattern) |
DateFormatManager(TimeZone timeZone) |
DateFormatManager(TimeZone timeZone,
Locale locale) |
DateFormatManager(TimeZone timeZone,
Locale locale,
String pattern) |
DateFormatManager(TimeZone timeZone,
String pattern) |
Modifier and Type | Method and Description |
---|---|
String |
format(Date date) |
String |
format(Date date,
String pattern) |
DateFormat |
getDateFormatInstance() |
Locale |
getLocale() |
String |
getOutputFormat()
Deprecated.
Use getPattern().
|
String |
getPattern() |
TimeZone |
getTimeZone() |
Date |
parse(String date) |
Date |
parse(String date,
String pattern) |
void |
setDateFormatInstance(DateFormat dateFormat) |
void |
setLocale(Locale locale) |
void |
setOutputFormat(String pattern)
Deprecated.
Use setPattern().
|
void |
setPattern(String pattern)
Set the pattern.
|
void |
setTimeZone(TimeZone timeZone) |
public DateFormatManager()
public DateFormatManager(TimeZone timeZone)
public DateFormatManager(Locale locale)
public DateFormatManager(String pattern)
public TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
public Locale getLocale()
public void setLocale(Locale locale)
public String getPattern()
public void setPattern(String pattern)
public String getOutputFormat()
public void setOutputFormat(String pattern)
public DateFormat getDateFormatInstance()
public void setDateFormatInstance(DateFormat dateFormat)
public Date parse(String date) throws ParseException
ParseException
public Date parse(String date, String pattern) throws ParseException
ParseException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.