public static void main(String[] args) {
    SimpleDateFormat s1 = new SimpleDateFormat("dd/MM/yyyy");
    SimpleDateFormat s2 = new SimpleDateFormat("yyyy-MM-dd");
    
    try {
      Date date = s1.parse("01/12/2003");
      String s = s2.format(date);
      System.out.println(s);
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }
    
  }