Hi Guys,
please help.
i have both date of birth and date of enrollment and have calculate using
int((${doe} - ${dob}) div 365.24)
the question/problem is there a way to get the output displayed? i have
tried this
type name label calculation
calculate Age_Enrollment int((${doe} - ${dob}) div 365.24)
note Age_Enrollment_note Age at Enrollment: ${Age_Enrollment}
Hi James,
Your calculations works (provided you have both doe & dob as date inputs). What do you not like? It displays the age (in years).
You could do int(((${doe} - ${dob}) div 365.24)*10) div 10 in case you want to have decimals...
ยทยทยท
On Tuesday, May 23, 2017 at 5:34:01 PM UTC+3, james macharia wrote:
> Hi Guys,
>
>
> please help.
>
>
> i have both date of birth and date of enrollment and have calculate using
>
>
> int((${doe} - ${dob}) div 365.24)
>
> the question/problem is there a way to get the output displayed? i have tried this
>
>
>
>
>
>
>
> type
> name
> label
> calculation
>
>
>
>
>
>
>
>
>
>
>
>
>
> calculate
> Age_Enrollment
>
> int((${doe} - ${dob}) div 365.24)
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> note
> Age_Enrollment_note
> Age at Enrollment: ${Age_Enrollment}