i want compare date comes datepicker in format "dd/mm/yyyy" against current date of system, , apply operation currentdate.before(pickeddate)
. how that?
you can current date with:
string pattern = "mm-dd-yyyy"; simpledateformat format = new simpledateformat(pattern); try { date date = format.parse("01-07-2013"); system.out.println(date); } catch (parseexception e) { e.printstacktrace(); }
Comments
Post a Comment