Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of days in February
Message
From
17/10/2020 19:07:08
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01676698
Message ID:
01676716
Views:
34
>From the article "Wednesday 2nd September 1752 would be followed by Thursday 14th September 1752".
>Run this in VFP:
>STORE {^1752-09-14} TO gdBDate
>?cDOW(gdbdate)
>It returns "Thrusday" .So far so good.
>
>Now run this:
>STORE {^1752-09-02} TO gdBDate
>?cDOW(gdbdate)
>Woops! It returns Saturday.

Yes, Sammie, VFP's dates are not accurate and consistent before {^1752-09-14}. The CalendarCalc classes I mentioned try to address some of the flaws.
m.BC = CREATEOBJECT("BritishCalendar")
? m.BC.WeekdayName(1752, 9, 14)   && displays Thursday 
? m.BC.WeekdayName(1752, 9, 2)    && displays Wednesday
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform