Description: Returns the day number (number of days since the year 1 A.D.) of date.
This function is only intended to be used on dates after 1582, when the Gregorian calendar was introduced.
Example:
TO_DAYS('2001-01-01') returns 730851.
See also: FROM_DAYS()
18.116.81.162