def
func:date
date(val, month: null, day: null)
If val is a DateTime: get date portion of the timestamp. If val is a Number: construct a date instance from year, month, day
Examples:
now().date // same as today() date(2010, 12, 1) // same as 2010-12-01