SyntaxFix
Write A Post
Hire A Developer
Questions
String str_date="13-09-2011"; DateFormat formatter ; Date date ; formatter = new SimpleDateFormat("dd-MM-yyyy"); date = (Date)formatter.parse(str_date); System.out.println("Today is " +date.getTime());
Try this