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

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


package cn.featherfly.conversion.string.basic;

import java.sql.Date;

/**
 * 

* SqlDate类转换器 *

* * @author 钟冀 */ public class SqlDateConvertor extends AbstractDateConvertor { /** */ public SqlDateConvertor() { } /** * {@inheritDoc} */ @Override protected String getFormat() { return "yyyy-MM-dd"; } /** * {@inheritDoc} */ @Override protected String[] getFormats() { return new String[]{"yyyy-MM-dd"}; } /** * {@inheritDoc} */ @Override protected Date convert(java.util.Date date) { return new Date(date.getTime()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy