Interval
day(date)day(Interval)date - is date or datetime. The date to extract the day from.
Interval - is Interval. The Interval to return the number of days from.
day('2012-05-12') → 12day(tointerval('3 days')) → 3day(age('2012-01-01','2010-01-01')) → 730