Serializing dates, datetimes, and times