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.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
How to convert date to MM/dd/yyyy format in table.
Hi.
I want to convert date to MM/dd/yyyy format in table without converting it to string as I am using that table dates for some date validations.
Last updated on
Hi
you can use the SimpleDateFormatter
final DateFormat fmt = new SimpleDateFormat("MM/dd/yyyy");
fmt.format(date)
Greets
Edit: Oh sorry. I read about that you doesn't want to convert to String. So you could use JodaTime. With JodaTime you can handle almost all date issues.
Last updated on Jul, 5th 2012
Override
formatPropertyValue(Object rowId, Object colId, Property property)
. This will only affect the View, while the data in the container keeps to be a Date-Object.
Last updated on
You cannot reply to this thread.