All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.featherfly.conversion.string.basic.DateConvertor Maven / Gradle / Ivy


package cn.featherfly.conversion.string.basic;

import java.util.Date;

/**
 * 

* Date类转换器 *

* * @author 钟冀 */ public class DateConvertor extends AbstractDateConvertor { /** */ public DateConvertor() { } /** * {@inheritDoc} */ @Override protected String getFormat() { return "yyyy-MM-dd HH:mm:ss"; } /** * {@inheritDoc} */ @Override protected String[] getFormats() { return new String[]{"yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd"}; } /** * {@inheritDoc} */ @Override protected Date convert(Date date) { return date; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy