Convert all Date instances in an object.