DateField Resolution

I have noticed that changing datefield resolution only changes the display.

For instance if I change resolution to DAY, the actual value stored is date selected + current system time and the value returned by getValue() is upto the milisecond.

Is it possible to get only the date value without any time information from a datefield

The value of a DateField is a java.util.Date so cast it to that and use the methods from Date to get what you want.

I agree on that, when resolution is set to DAY, time should be set to zero.

I opened a Ticket for that :

yeah I am completely agree with Romain Wilbert.
this issue ate half a day of mineā€¦!! :frowning: