I am trying to parse the date from one format to another format, but getting the parse exception. Please help me out on this issue.
String Orgdate= "2016-11-14T11:12:13";
java.util.Date tardate = null;
SimpleDateFormat dateFormat2 = new SimpleDateFormat("dd/mm/yyyy HH24:MI:SS");//Exception is in this line.
    try {
        targetdateformat  = dateFormat2.parse(Orgdate);
    } catch (ParseException e) {
        e.printStackTrace();
    }
Above code giving me date but different format,i am looking for date like below mention.
('14/11/2016 11:12:13')
Time format is 24 Hrs.
 
     
     
     
    