add method "check date" . And fix bug.