date function

Get/set date component of a date-time