idate()
The idate() function formats a local time/date as an integer. This is useful for extracting parts of a date or time.