# Display logic for LMP date at least 6 months

**URL:** <https://forum.dimagi.com/t/display-logic-for-lmp-date-at-least-6-months/2815>\
**Category:** Users\
**Created:** [July 3, 2016, 7:08am UTC](https://forum.dimagi.com/t/display-logic-for-lmp-date-at-least-6-months/2815 "2016-07-03T07:08:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jessica\_Frye](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/j/ccd318/32.png) [@jessica\_Frye](https://forum.dimagi.com/u/jessica_Frye)\
**Post date:** [July 3, 2016, 7:08am UTC](https://forum.dimagi.com/t/display-logic-for-lmp-date-at-least-6-months/2815/1 "2016-07-03T07:08:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kishan\_Sampat](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/kishan_sampat/32/500_2.png) [@Kishan\_Sampat](https://forum.dimagi.com/u/Kishan_Sampat)\
**Post date:** [July 4, 2016, 1:38pm UTC](https://forum.dimagi.com/t/display-logic-for-lmp-date-at-least-6-months/2815/2 "2016-07-04T13:38:09Z")

</div>

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](https://confluence.dimagi.com/display/commcarepublic/Calculations+with+Dates+and+Times) for  
more information on Date Calculations.

Hope this helps,

Regards,  
Kishan

> **···**
>
> On Sunday, July 3, 2016 at 12:38:43 PM UTC+5:30, jessica Frye wrote: \> \> 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 \>
