I want to display timestamps in a grid, but i do not like the default settings. How to set a custom renderer where i can specify the format in a vaadin 24 app?
Vaadin24 change the way timestamps are rendered in a grid
27 views Asked by Stimpson Cat At
1
Here's one example, with a simple String format and a specific locale:
There are many other
LocalDateRendererconstructors which allow you to use different ways of date formatting.If your data type is something else than a
java.time.LocalDate, just convert the value to aLocalDatefirst in the value provider (first constructor parameter).