Change the serialization of dates