Daxesh Prajapati
Daxesh Prajapati

Reputation: 151

How to print DD/MM/YYYY on JDateChooser Field?

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.

enter image description here

Upvotes: 2

Views: 2944

Answers (2)

Elliott Frisch
Elliott Frisch

Reputation: 201439

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);

Upvotes: 1

Related Questions