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.
HiI 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
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.