Re: [Dhis2-users] Substract Days in program Rules
Thank you guys for this quick reply. I really appreciate it 2018-03-18 19:32 GMT+00:00 Aaron C White: > Djibril, > > What if you use a negative value in d2:addDays()? Something liked > d2:addDays(your_date, -10). > > I haven't used that specific function, but I imagine it will accomplish > what you're looking for with a date returned. > > Aaron > > > -- > Aaron C. White > 919.522.5585 > > On Sun, Mar 18, 2018 at 3:12 PM, 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 not what is the work >> around. >> Best. >> >> ___ >> Mailing list: https://launchpad.net/~dhis2-users >> Post to : dhis2-users@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~dhis2-users >> More help : https://help.launchpad.net/ListHelp >> >> > ___ Mailing list: https://launchpad.net/~dhis2-users Post to : dhis2-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp
Re: [Dhis2-users] Substract Days in program Rules
Djibril, What if you use a negative value in d2:addDays()? Something liked d2:addDays(your_date, -10). I haven't used that specific function, but I imagine it will accomplish what you're looking for with a date returned. Aaron -- Aaron C. White 919.522.5585 On Sun, Mar 18, 2018 at 3:12 PM, DJIBRIL Hakimwrote: > 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. > > ___ > Mailing list: https://launchpad.net/~dhis2-users > Post to : dhis2-users@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-users > More help : https://help.launchpad.net/ListHelp > > ___ Mailing list: https://launchpad.net/~dhis2-users Post to : dhis2-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp
[Dhis2-users] Substract Days in program Rules
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. ___ Mailing list: https://launchpad.net/~dhis2-users Post to : dhis2-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp