Hi,
I've been working on one of the tutorial forms and I'm having trouble
creating a display condition for a label to show if the LMP date is at
least 6 months ago. How may I do that?
Best,
Jessica
Hi,
I've been working on one of the tutorial forms and I'm having trouble
creating a display condition for a label to show if the LMP date is at
least 6 months ago. How may I do that?
Best,
Jessica
Hello Jessica,
If I have understood you correctly, you want the Label to show if the LMP
is 6 months or more. You may achieve this by setting a display condition as
follows:
today() - /data/lmp >= 180
This will ensure that the label will only show if the LMP is greater or
equal to 6 months (180 days) from today. You can see Calculations with
Dates and Times
https://confluence.dimagi.com/display/commcarepublic/Calculations+with+Dates+and+Times for
more information on Date Calculations.
Hope this helps,
Regards,
Kishan