Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Comparing 2 dates
I have a 8 character string field which represents a date in the format
'YYYYMMDD' and I have a date field. I am trying to subtract one from the
other by doing a TO_DATE on both fields with the format 'YYYYMMDD'. i.e.
TO_DATE(date1,'YYYYMMDD') - TO_DATE(date2,'YYYYMMDD'))
I keep getting ORA errors complaining about the formatting.
Any help appreciated.
Nicky. Received on Fri Jan 28 2000 - 04:17:40 CST
![]() |
![]() |