Hi,
I need some help debugging an issue with the following transform:
{
"name": "Test Date Transform Delete Later",
"type": "static",
"attributes": {
"date": {
"attributes": {
"input": {
"attributes": {
"expression": "now+73d"
},
"type": "dateMath"
},
"inputFormat": "ISO8601",
"outputFormat": "MM-dd-yyyy"
},
"type": "dateFormat"
},
"value": "$date"
},
"internal": false
}
I am trying to add X days (78 in this example) to today’s date, and convert to MM-dd-yyyy.
I keep getting a “error in calculating $date” error. Do you see an issue here?
Here’s a list of variations I tried:
- adding an input with an empty object
- adding an input with an empty string
- using roundUp flag with true as well as with false, and using “now+78d/d” as the expression.
None of the above worked, and I keep getting the error. If I were to just do a dateMath operation, I can see the value does show up, but it fails when I pass the output to the dateFormat operation.