day function

Get/set days component of a date-time