ACC: IsDate() Returns False with Date in Long Date FormatLast reviewed: October 20, 1997Article ID: Q175385 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. When you use the IsDate() function with a date in Long Date format, the function returns a value of False. For example, the following expression returns a value of False:
IsDate("Thursday, January 1, 1998")However, the following expression returns a value of True:
IsDate("January 1, 1998") CAUSEThe IsDate() function does not recognize days of the week; therefore, it does not recognize a date that is in Long Date format.
RESOLUTIONDo not use a date in Long Date format with the IsDate() function. If you want to verify the correct weekday for a particular date, use the Format() function to show the weekday. For example, the expression
Format("1/10/98","DDDD, MMMM D, YYYY")returns the value
Saturday, January 10, 1998 STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
REFERENCESFor more information about the IsDate() function, search the Help Index for "IsDate function." For more information about the Format() function, search the Help Index for "Format function."
|
Additional query words: cardinal days
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |