VALIDDATE returns a '1'B if the string d holds a date/time value that matches the pattern p.
|
d specifies the input date as a character string representing date/time according to the pattern p.
d must have computational type and should have character type. If not, d is converted to character.
If present, it specifies the date/time pattern of d. If p is missing, it is assumed to be the default date/time pattern of 'YYYYMMDDHHMISS999'.
p must have computational type and should have character type. If not, it is converted to character.
Allowable patterns are listed in Table 50. For an explanation of Lilian format, see Date/time built-in functions.
If the pattern contains punctuation characters, VALIDDATE will not check that the input string contains matching characters. So, for example, for the pattern YYYY-MM-DD, VALIDDATE will accept both 2008-03-14 and 2008.13.14 etc.