public class DateConverter extends LocaleConverter
| Constructor and Description |
|---|
DateConverter()
Creates an converter using the default DateFormat style (SHORT).
|
DateConverter(int style)
Creates an converter using the given DateFormat style.
|
DateConverter(SimpleDateFormat sdf) |
DateConverter(String pattern) |
public DateConverter()
public DateConverter(int style)
style - The DateFormat style. (Ex: DateFormat.SHORT, DateFormat.FULL, etc.)public DateConverter(SimpleDateFormat sdf)
public DateConverter(String pattern)
public Object convert(Object value, Locale loc) throws ConversionException
LocaleConverterconvert in class LocaleConvertervalue - The object to convert.loc - The user locale to use in the convertion.ConversionException - if the conversion fail for any reason.Copyright © 2015. All Rights Reserved.