add date serialization to long and parsing back