modify the erro of date()