The api has a method setDateFormatString
How to print DD/MM/YYYY on JDateChooser Field?
-
30-07-2022 - |
Question
How to print DD/MM/YYYY
on JDateChooser
field?
JDateChooser jdc=new JDateChooser();
i am using JDateChooser
for selecting date, But i also want to facilitate type date in DD/MM/YYYY
format.
La solution
Autres conseils
From the api, I'd use the JDateChooser(java.lang.String dateFormatString, boolean startEmpty) constructor as so;
JDateChooser jdc = new JDateChooser("DD/MM/YYYY", true);
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow