Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Very fast age calculation
Message
From
24/07/2000 12:32:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Very fast age calculation
Miscellaneous
Thread ID:
00396199
Message ID:
00396199
Views:
42
Hello, All.

Today I've discovered something I didn't know: how to calculate age with 1 (one) line of code. Maybe you know this, but don't be offended, please. I will post this

x=int((val(dtos(date()))-val(dtos(birth_date)))/10000)

x is age.
Grigore Dolghin
Class Software.
Next
Reply
Map
View

Click here to load this message in the networking platform