The same Excel DATE.VALUE function in SQL
Hi, I need to convert a date in a number that Excel can recognize.
I'm trying to do a
SELECT
(trunc(SYSDATE) - TO_DATE('1900-01-01', 'yyyy-mm-dd'))
FROM dual
And I retrieve this: 41014
But today in excel is 41016!!
Why? There is a better solution than this?
Thank you, R.