Class DateConverter
java.lang.Object
io.leandev.appfuse.converter.DateConverter
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DateConverter
-
DateConverter
public DateConverter()建立使用預設格式的轉換器
-
-
Method Details
-
of
建立指定日期格式的轉換器- Parameters:
pattern- 日期格式- Returns:
- 轉換器實例
-
convert
Description copied from interface:ConverterConverts the given value to the target type.- Specified by:
convertin interfaceConverter<Date>- Parameters:
value- the value to convert- Returns:
- the converted value of type T
- Throws:
ConversionException- if the value cannot be converted
-
format
-