hi all,
SimpleDateFormat dateformat=new SimpleDateFormat("MM-dd-yyyy");
System.out.println("Formated date:"+dateformat.format(dd));
String parsedate=dateformat.format(dd);
which prints this output
Formated date:02-02-2007
i am also using the date picker in a
jsp, which prints the date as 2-2-2007.
there is a problem with these date formats. date picker gives the date as 2-2-2007, but the
java code gives the date prepending with 0.
can you please help me. as there is a problem with executing the sql query.