Syntax
Public Function IsDateValue(expression As Variant) As Boolean
Description
This function is used to return a boolean value indicating whether an expression is a valid date value.
Parameters
Key | Description |
expression | An expression of type variant to be indicated if it a valid date or not. |
Return value
Returns true if an expression is of the Date Type. Otherwise, it returns false.
Sample
Public Sub main()AlertMessage IsDateValue("2/3/2016") 'Returns true. End Sub
See Also