As per documentation we just have following operators IdentityNow Transforms - Date Compare - Compass
- LT: Strictly less than: firstDate < secondDate
- LTE: Less than or equal to: firstDate <= secondDate
- GT: Strictly greater than: firstDate > secondDate
- GTE: Greater than or equal to: firstDate >= secondDate
How can I check if given source attribute value is exactly matching with today’s date? I want to set user ‘ACTIVE’ if he is set to join today. Note: If user is getting joined in “now-7d”, I’m making it as a 'PRE_HIRED"
{
"attributes": {
"firstDate": {
"attributes": {
"values": [
{
"attributes": {
"input": {
"attributes": {
"sourceName": "Delimited File",
"attributeName": "HIRE_DATE"
},
"type": "accountAttribute"
},
"inputFormat": "ddMMyyyy",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
{
"attributes": {
"input": "31121999",
"inputFormat": "ddMMyyyy",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
}
]
},
"type": "firstValid"
},
"secondDate": {
"type": "dateMath",
"attributes": {
"expression": "now",
"roundUp": true
}
},
"operator": "?", // how to compare exact date here?
"positiveCondition": "Active",
"negativeCondition": "Inactive"
},
"type": "dateCompare",
"id": "PRE_HIRED DATE COMPARISON"
}