Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with date

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
Hi,

I'm getting "not a valid month" error with following query. What could be the problem ?

select * from table1 where day = to_date('11/19/2001','DD-MON-YYYY')

day column has following values:
19-NOV-2001
18-NOV-2001
:
:


Thanks
 
Your to_date function is using a format that's not compatible with the '11/19/2001' value you are trying to convert. Try to_date('11/19/2001','mm/dd/yyyy') instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top