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.
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.
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@gmail.com>:
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@gmail.com
*Mobile:* 0033 6 7210 23 59
Add negative days
Alex
On Sunday, March 18, 2018, DJIBRIL Hakim djib.hakim@gmail.com 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.
–
Alex Tumwesigye
Kampala
Uganda
+256 774149 775, + 256 759 800161
Skype ID: talexie
IT Consultant (Servers, Networks and Security, Health Information Systems - DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant
"I don’t want to be anything other than what I have been - one tree hill "
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
On Sun, Mar 18, 2018 at 3:12 PM, DJIBRIL Hakim djib.hakim@gmail.com 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
–
Aaron C. White
919.522.5585
Thank you guys for this quick reply.
I really appreciate it
2018-03-18 19:32 GMT+00:00 Aaron C White aaroncwhite@gmail.com:
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@gmail.com 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