|
|
|
|
Re: Due Date Calculation [message #669692 is a reply to message #669653] |
Tue, 08 May 2018 04:14 |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
And just to be clear why John's approach works and your's doesn't:
Oracle lets you add and subtract numbers from dates.
to_char takes a date and converts into a string that represents a date in a particular format - but the crucial thing is it is a string.
You can't add numbers to strings.
So you need to do the date math before to_char is applied.
|
|
|