How to convert string to date

HI Everyone,

i am trying to convert a date which is in string format to a date format...but i am having this error

javax.servlet.ServletException: Unparseable date: "2004-05-03"

Can anyone help?

Here is a piece of code :-

SimpleDateFormat formatter= new SimpleDateFormat ("yyyy-mm-dd");

Date today = formatter.parse(fulldate);

[380 byte] By [mukadamn] at [2007-9-30 8:01:02]
# 1
You need to change your formatting string to: "yyyy-MM-dd" Lower case 'm' is for minutes...
RadcliffePike at 2007-7-2 16:34:40 > top of Java-index,Administration Tools,Sun Connection...