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') → 12
day(tointerval('3 days')) → 3
day(age('2012-01-01','2010-01-01')) → 730