Menu
Hi,
I have saved some date fields in the above format, and it was working okay until the change of the year. Now, when I try to do a search of dates for
SELECT *WHERE ord.MMDDYYYY Between ‘01011999’ And ‘01012007’ order by ord.ID I have no records returned.
I have tried casting the record values to a date
—- select * where cast(ord.MMDDYY as DATE) between cast(‘01011999 as Date) and cast(‘01012007’ as DATE) —- But that doesnt work
I really kind of need to keep the database value as a text value if possible.
Any suggestions?