added extensions which make it easier to serialize and deserialize dates for storage in redis