Package org.javalite.conversion
Class DateToStringConverter
java.lang.Object
org.javalite.conversion.DateToStringConverter
- Author:
- Eric Nielsen
-
Constructor Summary
ConstructorDescriptionDateToStringConverter(String pattern)
DateToStringConverter(DateFormat format)
-
Method Summary
-
Constructor Details
-
DateToStringConverter
- Parameters:
pattern
- pattern to use for conversion
-
DateToStringConverter
- Parameters:
format
- DateFormat to use for conversion
-
-
Method Details
-
canConvert
Description copied from interface:Converter
Returns true if this converter can convert instances of sourceClass to destinationClass.- Specified by:
canConvert
in interfaceConverter<Date,String>
- Parameters:
sourceClass
- source ClassdestinationClass
- destination Class- Returns:
- true if sourceClass is java.util.Date, or a subclass of it, and destinationClass is String
-
convert
Description copied from interface:Converter
Converts instance of S to T.
-