fix date, datetime problem