- flag = date:isNull()
- flag = date:isValid()
SYNOPSIS
DESCRIPTION
date:isNull() checks if date is null (0000-00-00), which is also an invalid date.
date:isValid() checks if date is a valid date.
RETURN VALUE
A boolean indicating the success of the check.
ERRORS
Raises an error if date is not a date instance.
EXAMPLE
>
>
d = clock.newDate()
print(d:isNull(), d:isValid())
true false