Change date time stored format in database to serialized long value