Re: [Dhis2-users] [Dhis2-devs] Substract Days in program Rules

2018-03-18 Thread Edouard Lavaud
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 : > Hi, > PLEASE how to do a

Re: [Dhis2-users] [Dhis2-devs] Substract Days in program Rules

2018-03-18 Thread Alex Tumwesigye
Add negative days Alex On Sunday, March 18, 2018, DJIBRIL Hakim wrote: > 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