go to post Marcus Magina · Feb 21, 2018 /// Calculate age by passing date of birth in internal format ( ex.: $ZDH("19/04/1993",4) )ClassMethod currentAge(date As %Date = "") As %Integer [ CodeMode = expression ]{ $select(date="":"",1:($ZD($H,8)-$ZD(date,8)\10000))} Certifications & Credly badges:Marcus has no Certifications & Credly badges yet.Global Masters badges:show all 2Followers:Marcus has no followers yet.Following:Marcus has not followed anybody yet.
/// Calculate age by passing date of birth in internal format ( ex.: $ZDH("19/04/1993",4) )
ClassMethod currentAge(date As %Date = "") As %Integer [ CodeMode = expression ]
{
$select(date="":"",1:($ZD($H,8)-$ZD(date,8)\10000))
}