Add `serializeDate` function

Ref. #65