Package de.bmiag.tapir.core.converter
Class SimpleDateConverter
- java.lang.Object
-
- de.bmiag.tapir.core.converter.SimpleDateConverter
-
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<java.lang.String,java.util.Date>
public class SimpleDateConverter extends java.lang.Object implements org.springframework.core.convert.converter.Converter<java.lang.String,java.util.Date>
AConverter
which uses a givenDateFormat
to convert aString
to aDate
. By default theDateFormat
is derived from the given locale usingDateFormat.DEFAULT
. You can specify the date format pattern by providing the dateformat property.- Since:
- 3.0.0
- Author:
- Oliver Libutzki <[email protected]>
-
-
Constructor Summary
Constructors Constructor Description SimpleDateConverter(java.text.DateFormat dateFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
convert(java.lang.String source)
-