I have a Google app engine JDO datastore entity with a date field and it looks like the following.
@PersistenceCapable
public class Test {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private Date dateTime;
}
The problem I'm having is it defaults to datetime (2014-08-30 00:00:00.000Z) format which is not how I want to store the date. I want to define specific format 'yyyy-MM-dd'.
Looks like there's support for python to do this. However, I can't find similar documentation for Java.
How can I change the datastore entity definition to support what I'm trying to accomplish?