Date format check by constructor