Date format: Invalid Month
Date format: Invalid Month I have below data format 10/29/2003 10/21/2003 7:26:00 AM in a table and I want to compare dates in between '07-14-2013' and '09-15-2013'. I have written code as to_char(to_date(a.TEXT_VALUE, 'DD-MM-YYYY HH:MI:SS AM'),'dd-mm-YYYY') between '07-14-2013 00:00:00 AM' and '09-15-2013 00:00:00 AM' this is not working. Can anyone suggest what should I do to get dates between these 2 dates? How varied are the values in your text field? Do you have a mix of just dates, dates with times in 12-hour format (with AM/PM), and dates with times in 24-hour format? How sure are you that all the dates are in the same MM/DD/YYYY format? This is why dates should never be stored in varchar2 columns, but always in date columns. – Alex Poole Oct 16 '13 at 16:10 varchar2 date ...