enhancing date's format checking