Want to work with us? We're on the lookout for a Magento Developer.

We're hiring

Calculate Age Accurately

Web Bureau

10 November 2010 by Web Bureau

This function can be used to calculate a persons age accurately.



myAgevar = DateDiff(DateInterval.Year, CDate(dte), Now.Date) - CLng(IIf(Format(CDate(dte), "MMdd") > Format(Now.Date, "MMdd"), 1, 0))

Grow your businessStart a project with us today.