Date.after not working for me
<p>I have a Date in String , "2016-6-26", that I want to compare with current date and if my date is equals or greater then current date i want do do some tasks.
i have implemented the following code but it always gives me valid whatever date i select.</p>

<pre><code>String[] parts = date.split("-");  //where date is 2016-6-26
    String part1 = parts[0]; //2016
    String part2 = parts[1];  //6
    String part3 = parts[2];  //26
    String valid_until =part3+"/"+part2+"/"+part1; //"26/06/2016";        // "28/02/2016";
    Log.d("soh_valid", valid_until);
    SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");

    Date strDate = null;
    try {
        strDate = sdf.parse(valid_until);
    } catch (ParseException e) {
        e.printStackTrace();
    }
    if (new Date().after(strDate)) {
        Log.d("new_date", String.valueOf(new Date()));
     Toast.makeText(VASActivity.this,"valid",Toast.LENGTH_SHORT).show();
    }else{
        Toast.makeText(VASActivity.this,"Not valid",Toast.LENGTH_SHORT).show();
    }
</code></pre>

<p>what i am doing wrong here?
any suggestion? </p>