Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A twist on age calculation.
Message
From
04/01/2005 11:04:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
04/01/2005 10:59:41
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:
00974094
Views:
38
>>>>Fabio,
>>>>I already sent an age calculation that returns those expected dates:)
>>>>Here is it shortenehed:
>>>>
>>>
>>>
>>>Sorry
>>>
>>>.CalcAge({^1988/2/29} ,  {^1991/2/27 })
>>>Observed 2 , 11,  30
>>>Expected 2 , 11,  29
>>>
>>>
>>>Fabio
>>
>>Why 29? 30 is correct.
>>Cetin
>
>
>{^1988/2/29} + 2 years + 11 month + 0 days = {^1991/1/29}
>? {^1991/1/29}+30
>
If you're born before March 1st, then next year you're 1 year older before March 1st, right?

{^1988/2/29} + 2 years = {^1990/2/28} && 2 years old now
{^1990/2/28} + 11 months = {^1991/1/28}
{^1991/1/28} + 30 days = {^1991/2/27}

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform