Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A twist on age calculation.
Message
From
04/01/2005 10:51:03
 
 
To
04/01/2005 10:42:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00973330
Message ID:
00974086
Views:
33
This is by design and is documented in the readme file: "AgeCalculator treats 'one month' as the interval from a given day in one month to the same day, or as close to it as possible, in the following month." The example given is "31-Jan-2004 to 29-Feb-2004 is 1 month (last day to last day)".


>
>  .CalculateAge({^1988/10/31} ,  {^1998/11/30 })
>  ? .nYears, .nMonths , .nDays
>Observed 10,1,0
>Expected 10,0,30
>
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Reply
Map
View

Click here to load this message in the networking platform