I am trying to use a java.util.Date as input and then creating a query with it - so I need a java.sql.Date.
I was surprised to find that it couldn\'t do the conver
i am using the following code please try it out
DateFormat fm= new SimpleDateFormatter();
specify the format of the date you want for example "DD-MM_YYYY" or 'YYYY-mm-dd' then use the java Date datatype as
"DD-MM_YYYY"
'YYYY-mm-dd'
fm.format("object of java.util.date");
then it will parse your date