fix date method