I have a requirement that I need to compare two Dates. One Date will come from DB which is String in \"YYYY-DD-MM\" firm and I need to compare this String Date with current Date
Date cDate = new Date(); String fDate = new SimpleDateFormat("yyyy-MM-dd").format(cDate);