← Back to team overview

dhis2-devs team mailing list archive

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 <aaroncwhite@xxxxxxxxx>:

> 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 <djib.hakim@xxxxxxxxx>
> 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@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>

References