java.sql.SQLException: ORA-01861: literal does not match format string
843854Feb 28 2003 — edited Dec 21 2006When I use a query
select eqc_id,title from eqc_questions where to_date(sysdate,'dd/MM'yyyy') between to_date(fromdate,'dd/MM/yyyy') and to_date(todate,'dd/MM/yyyy')
in JSP,it is giveing an exception but when I am using the same query in Oracle database,directly, it is working fine.
Here,fromdate & todate are fields in the table.
I need a solution for this very urgently.
Thanx in advance.