The SimpleDateFormat constructor doesn't take the text to be parsed as argument, it takes the format description as argument. See the javadocs of the SimpleDateFormat class for a lengthy explanation of the available formats.
Ping & DNS - updated with new look and Ping home screen widget
Originally posted by Amit Y Desai: SimpleDateFomat line is wrong... instead of passing actuall string to SimpleDateFormat,it should pass the pattern..
Note that "mm/dd/yyyy" means most likely not what you think it means. "mm" is minutes, not months. Use "MM" for months. See the API documentation of class SimpleDateFormat for documentation about the format string.