fix date format for date picker