FIX: Ambiguous Date/Datetime Constant Error (192768)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q192768 SYMPTOMS
Using an ambiguous date/datetime string in Visual FoxPro 6.0 causes an
ambiguous date/datetime constant error message to occur. For example:
Use the following format:
{^yyyy-mm-dd[hh[:mm[:ss]][a|p]]}
CAUSE
The error message is missing a reference to an optional comma between the
Date and Time string.
RESOLUTION
To include the Hour and retain Minutes and Seconds the default in your
datetime string, use one of the following formats:
?{^1998-12-12, 10} && This returns 12-12-98 10:00:00 AM
-or-
?{^1998-12-12 10:} && This returns 12-12-98 10:00:00 AM
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual FoxPro 6.0 Service Pack 3. For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed To download the latest Visual Studio service pack, visit the following Microsoft Web site:
Modification Type: | Minor | Last Reviewed: | 12/12/2005 |
---|
Keywords: | kbBug kbfix kbXBase KB192768 |
---|
|