SyntaxFix
Write A Post
Hire A Developer
Questions
`
SimpleDateFormat sdf= new SimpleDateFormat("MM/dd/yyyy") Date date1=sdf.parse("03/25/2015"); Date currentDate= sdf.parse(sdf.format(new Date())); return date1.compareTo(currentDate);