I\'m trying to parse a string to a date field in an android application but I can\'t seem to get it correct. Here is the string I\'m trying to convert to a date \"03/26/2012
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());