Back to project page Android-Lib-Database.
The source code is released under:
Apache License
If you think the Android project Android-Lib-Database listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package android.lib.database; /*from ww w . j ava 2s. c o m*/ import java.util.Date; public final class DateConverter implements TypeConverter<Long, Date> { public DateConverter() { } @Override public Date fromDatabase(final Long value) { return new Date(value.longValue()); } @Override public Long toDatabase(final Date value) { return Long.valueOf(value.getTime()); } }