Dim theDate as New Date
Dim theTrueBool as Boolean
thetruebool=ParseDate("08/09/2006",theDate)
If theTrueBool then
MsgBox thedate.AbbreviatedDate
else
MsgBox "Invalid Date format!"
end if
The code above works fine on my WinXP system. It also works fine using
"08-09-2006" as the date string.
I think someone mentioned recently that there are several things that can
affect how dates are dealt with on Windows. One would be whether the date
format of the computer is set to DD/MM/YYYY or MM/DD/YYYY.
For instance, if it is set to MM/DD/YYYY and you pass "25/08/2006," the date
format will be seen as incorrect.
If this is your problem, you would somehow have to find what the computer's
date format is, and present the date with the month and day reversed. You
would probably have to use declares to get this information.
You *might* be able to get this information using Aaron Ballman's
Functionality Suite:
http://www.aaronballman.com/programming/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>