Article ID: 198453
Article Last Modified on 6/24/2004
APPLIES TO
- Microsoft Access 2000 Standard Edition
This article was previously published under Q198453
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
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("Friday, January 1, 1999")
However, the following expression returns a value of True:
IsDate("January 1, 1999")
CAUSE
The IsDate() function does not recognize days of the week; therefore, it
does not recognize a date that is in Long Date format.
RESOLUTION
Do 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/99","DDDD, MMMM D, YYYY")
returns the value
REFERENCES
For more information about the IsDate() function, click Microsoft Access
Help on the Help menu, type IsDate function example in the Office
Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about the Format() function, click Microsoft Access
Help on the Help menu, type Format function in the Office Assistant or
the Answer Wizard, and then click Search to view the topics returned.
Additional query words: cardinal days
Keywords: kbprogramming kbprb KB198453