Syntax:
TO_DAYS(date)

Given a date date, returns a day number (the number of days since year
0). Returns NULL if date is NULL.

URL: https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html

