ormlite read Date as 'yyyy-MM-dd'
If you take a look at the ORMLite documentation about date formats you will see that it mentions the @DatabaseField.format
field. Here are the javadocs for format
. This allows you to set the Date
format.
The following should work:
@DatabaseField(columnName = "REVISION_DATE", dataType = DataType.DATE_STRING, format = "yyyy-MM-dd")public Date revisionDate;