0
How to find the difference between the dates from two different jdatechooser?
please explain with the code if possible. thank you.
1 ответ
+ 7
As far as I know, JDateChooser returns a string containing the date. So you could use:
DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); // enter pattern that matches the string!
Date date = df.parse(yourDateString);
Then you can simply substract two dates, you parsed before.