The IsNumeric and IsDate Functions

These two functions test if a string can be evaluated as a number or date according to the WRS and Windows language version. You should always use these functions before trying to convert a string to another data type. There are no isBoolean functions to check if a string is a U.S.-formatted number or date. Note that IsNumeric does not recognize a percent sign (%) character on the end of a number, and IsDate does not recognize days of the week. IsDate is also extremely generous in its recognition; if there's any possible way that a string could represent a date, it will return True.

0 0

Post a comment