Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of days in February
Message
De
17/10/2020 19:07:08
 
 
À
17/10/2020 18:08:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01676698
Message ID:
01676716
Vues:
35
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform