I’m having a difficult time converting to a LDAP date. If you take the last conversion off, it works fine. My velocity script will need modified, but it shows how it was working with the ISO format. I need to send this date to LDAP only if it is available.
{
"id": "720a951f-c037-4f6e-b5d0-b0b39fddefe9",
"name": "LDAPDate",
"type": "static",
"attributes": {
"ultiAccountExpires": {
"attributes": {
"input": {
"attributes": {
"input": {
"attributes": {
"input": {
"attributes": {
"values": [
{
"attributes": {
"attributeName": "ESTIMATED_END_DATE",
"sourceName": "UltiPro"
},
"type": "accountAttribute"
},
{
"attributes": {
"value": "12/29/2099"
},
"type": "static"
}
]
},
"type": "firstValid"
},
"inputFormat": "M/d/yyyy",
"outputFormat": "ISO8601"
},
"type": "dateFormat"
},
"expression": "+28h/h",
"roundUp": false
},
"type": "dateMath"
},
"inputFormat": "ISO8601",
"outputFormat": "LDAP"
},
"type": "dateFormat"
},
"value": "#if($ultiAccountExpires != '2099-12-30T04:00Z')$ultiAccountExpires#end"
},
"internal": false
}