SyntaxFix
Write A Post
Hire A Developer
Questions
Pattern is wrong
String date="Sat Jun 01 12:53:10 IST 2013"; SimpleDateFormat sdf=new SimpleDateFormat("E MMM dd hh:mm:ss Z yyyy"); Date currentdate; currentdate=sdf.parse(date); System.out.println(currentdate);