Hi Andrew, thanks that looks good. On Fri, Nov 4, 2016 at 2:59 PM, Muhire Andrew <muhireand...@yahoo.com> wrote:
> Thanks Lars, > > I came to find an expression in indicators that does this in tracker: > > like 40 - d2:weeksBetween(mother visit LMP, Current date) > > *The above gives the count down of the weeks remaining for the mother to > deliver since the delivery has approximately 40 weeks.* > > Another expression was to display the age of the child for each visit to > guide the nutritionist: > > d2:monthsBetween(Child Birth date, current date) > > *The above gives the current months based on the date of visit.* > > > > On Friday, November 4, 2016 1:52 PM, Lars Helge Øverland <l...@dhis2.org> > wrote: > > > Hi Andrew, > > how are you doing? First of all, would you mind asking this on the dev > list? There are more people who can help you there. > > Also it would be good if you could elaborate a bit about what you need to > do regarding date conversion. Is the problem that you are asking > beneficiaries about their age in months, and that you later would like to > do aggregation based on months/quarters in dhis analytics apps? > > best regards, > > Lars > > > > > > On Fri, Oct 28, 2016 at 12:22 PM, Muhire Andrew <muhireand...@yahoo.com> > wrote: > > Dear All, > > We are developing the case based nutrition system [Using DHIS2] that is > targeting to track Pregnant Women, Lactating and Children under 2years.What > we are tracking is Attributes and tracker variables like Date of Birth, > hight, weight, LMP Date and We would like to Display on our program > dashboard the indicators like BMI, Height for Age, Weight for Age and also > expected deliveries using the LMP dates which is our data element that is > set to date type. > > Is there anyone who knows how to convert the dates into Months or years > without use of coding, i mean during the calculation of Program indicators? > . We also need users to enter the date of Birth of a Baby or Mother and the > system popup the Age in months or Years. > > > > > -- > Lars Helge Øverland > Lead developer, DHIS 2 > University of Oslo > Skype: larshelgeoverland > l...@dhis2.org > http://www.dhis2.org <https://www.dhis2.org/> > > > > -- Lars Helge Øverland Lead developer, DHIS 2 University of Oslo Skype: larshelgeoverland l...@dhis2.org http://www.dhis2.org <https://www.dhis2.org/>
_______________________________________________ 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