Function: date-to-day

Return the number of days between year 1 and DATE.
DATE should be a date-time string.