dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #15431
Re: [Dhis2-devs] Substract Days in program Rules
Hi Djibril,
You can actually use the d2 adddays function to substract days.
Just use a negative number.
For example d2:addDays(V{current_date}, -3) will return the date three days ago.
Best,
Edouard
2018-03-18 21:12 UTC+02:00, DJIBRIL Hakim <djib.hakim@xxxxxxxxx>:
> Hi,
> PLEASE how to do a substract Days from a date in program Rule, The resultat
> must be a date of course , I saw in documentation a D2:addDays() function.
> is there another for substractDays. if not what is the work around.
> Best.
>
--
*Edouard Lavaud, *
*MSc in Health Policy, Planning & FinancingMEng in
TelecommunicationUniversity Diploma in ICT for Health*
*Email:* edouard.lavaud@xxxxxxxxx
*Mobile:* 0033 6 7210 23 59
References