General information
Category:
Coding, syntax & commands
Here's a good one:
** Assumes DOB is a date expression
AGE = INT((VAL(DTOS(DATE())) - VAL(DTOS(DOB))) / 10000)
>Does someone have a routine that calculates someones's age based upon the current date?
>
>I have written one, but it does not account for leap years so it's basically useless and I don't want to reinvent the wheel. It's probably a common routine out there.
>
>Thanks for helping me again.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only