Check whether the expression can be converted to a date:
SELECT IsDate(Now());
Try it Yourself »
The IsDate() function checks whether an expression can be converted to a date.
This function returns a Boolean value. TRUE (-1) indicates that the expression is a valid date, and FALSE (0) indicates that the expression is not a valid date.
IsDate(
expression)
Parameter | Description |
---|---|
expression | Required. The value to test |
Works in: | From Access 2000 |
---|
Return TRUE if the expression is a valid date, otherwise FALSE:
SELECT IsDate("Hello");
Try it Yourself »
Return TRUE if the expression is a valid date, otherwise FALSE:
SELECT IsDate("August 25, 2017");
Try it Yourself »
Return TRUE if the expression is a valid date, otherwise FALSE:
SELECT IsDate(#25/8/2017#);
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!