Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date Calculation Problems with COM Server
Message
From
23/05/2003 15:59:39
 
 
To
23/05/2003 15:40:30
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00792372
Message ID:
00792409
Views:
17
>That worked! So, it seems to be the subtracting-the-day-from-the-date part that doesn't work. I tested it, and the DAY function returns the correct day of the month, but when subtracted, it comes up with yesterday, just the same as my calculation, even though my calculation was also adding a 1.
>
>I just figured it out while testing. COM must be using DATETIME instead of DATE. I calculated the number of seconds in 22 days (1,900,800) and subtracted, and got the correct date.
>

Yep, it is using datetime.

>Thanks for your help!

You're welcome...
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform