Valid_Date
Syntax: Valid_Date(ccyymmdd_DateStr)
Arguments:
- ccyymmdd_DateStr is a ccyymmdd_DateStr data type in yyyymmdd format.
Return Type: Integer (1 or 0)
Description: Determines whether a date string is valid, returning 1 if it is or 0 if it is not.
Example:
if (Valid_Date(CRTRAN25.cardExpireDate))
then {...;}
This example verifies that the card expiration date is in a valid date format. If the date in this field is, for example, 19900132, the function returns a 0 because no month contains 32 days. If the date is 19900131, however, the function returns a 1 because this is a valid date. As with Valid_ Amount, an
if
clause containing Valid_Date does not express that the result must equal 1; the rule engine evaluates the
then
clause if the function returns 1, and not if it returns 0.