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.
24 hourdate format Datefield.
Hi
I am using datefield component in vaadin. i want 24 hourformat in datefield(Means remove am and pm) from datefiled.
i am able to achieve this one by using changing locale to UK.
DateField df = new DateField("Date");
df.setResolution(Resolution.MINUTE);
df.setLocale(Locale.ENGLISH);
but i want to 24 hour format where locale should be Locale.ENGLISH . and without changing the locale.UK.
please help me
Thanks
Santoshkumar.
Have you tried to create your own locale?
bLocale = new Locale("en", "US");
Alternative:
I use DateField.setDateFormat() because I do not want to bring locale into the picture as there's actually no locale that does what I want.