Customize DateTimeField in Vaadin 8

Hi all,

In DateTimeField component, it displays both date (year, month, day) and hour (hour, minute, second). Now i don’t want to get date. Any idea to only allow to show and get time ( hour:minute:second) ?

Thanks

I wanna that too, but in my case it is about the InlineDateField component. I need to change the weekend days and holidays colors (background or font-color)?

For the time-only field, you’ll need a custom component. There’s an add-on called TimeField that does just that: https://vaadin.com/directory/component/timefield although it’s not yet ported to Vaadin 8.

For the themed dates, check out Tuning Datefield: https://vaadin.com/directory/component/tuning-datefield

-Olli

Great. I’ll be trying it.