# Date compare Help on 7 Day notification

**URL:** <https://developer.sailpoint.com/discuss/t/date-compare-help-on-7-day-notification/90050>\
**Category:** SHF Discussion and Questions\
**Tags:** transforms, identity-security-cloud\
**Created:** [November 18, 2024, 8:44pm UTC](https://developer.sailpoint.com/discuss/t/date-compare-help-on-7-day-notification/90050 "2024-11-18T20:44:59Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![sagar\_kamalakar](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sagar_kamalakar/32/18893_2.png) [@sagar\_kamalakar](https://developer.sailpoint.com/discuss/u/sagar_kamalakar)\
**Post date:** [November 22, 2024, 4:37am UTC](https://developer.sailpoint.com/discuss/t/date-compare-help-on-7-day-notification/90050/10 "2024-11-22T04:37:01Z")

</div>

@VBsupport

Try this hope it helps

Note: Update sourceName and attributeName

```auto
{
    "id": "",
    "name": "End Date Notification Transform",
    "type": "static",
    "attributes": {
        "requiresPeriodicRefresh": "true",
        "inactivestate": {
            "attributes": {
                "firstDate": {
                    "type": "dateFormat",
                    "attributes": {
                        "input": {
                            "type": "accountAttribute",
                            "attributes": {
                                "sourceName": "<Test-Employee>",
                                "attributeName": "<end_date>"
                            }
                        },
                        "inputFormat": "yyyy-MM-dd",
                        "outputFormat": "ISO8601"
                    }
                },
                "secondDate": {
                    "type": "dateFormat",
                    "attributes": {
                        "input": {
                            "type": "dateMath",
                            "roundUp": true,
                            "attributes": {
                                "expression": "now+7d"
                            }
                        },
                        "inputFormat": "yyyy-MM-dd'T'HH:mm",
                        "outputFormat": "ISO8601"
                    }
                },
                "operator": "lte",
                "positiveCondition": "yes",
                "negativeCondition": "no"
            },
            "type": "dateCompare"
        },
        "value": "#if($inactivestate=='yes')true#{else}false#end"
    },
    "internal": false
}

```

---

_[View the full topic](https://developer.sailpoint.com/discuss/t/date-compare-help-on-7-day-notification/90050)._
