Serialize date as UNIX time