Exceptions and asserts added to DateTime classes.