Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding 1 year to a date
Message
From
18/10/2000 15:00:02
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00430291
Message ID:
00431081
Views:
9
>>>And GOMONTH() still does not work correctly. ;(
>>>Try following lines:
>>>
>>>SET STRICTDATE TO 0
>>>tt = {01/01/0003}
>>>? tt && shows correct date - 01/01/0003
>>>? gomonth(tt,12) && shows empty date - \ \
>>>
>>>GOMONTH() have such behaviour up to {01/01/1752}
>>>How do you like this bug? ;)
>>
>>Hardly a bug. Dates following the Gregorian Calendar did not exist before 1752, so what's it supposed to do, guess? :)
>
>
>Than, how you explain following???
>tt = {01/01/0003}
>? tt && shows correct date - 01/01/0003
>
>VFP have ability to store all such dates. Some functions even return correct values for them. But GOMONTH() didn't work.

That maybe true, but are those dates truly correct? There was a skip in the calendar back then (when and how many days, I'm not exactly sure of, and I'm too lazy to look it up. :)), but I don't think that VFP correctly calculates the day of the week for those dates.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform