Hi i have a date varilable here date is in following formate:
Fri Nov 06 23:59:59 IST 2015
Now i want to convert thi date in below format
2015-11-06 23:59:59
I am using this but not working:
SimpleDateFormat sdf=new SimpleDateFormat(fromDate);
Date currentdate;
currentdate=sdf.parse(fromDate);
System.out.println("TestDATE"+currentdate);
How can I convert?