Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
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
Gaurav Goyal: 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.
yeah I am completely agree with Romain Wilbert.
this issue ate half a day of mine..!! :(