Added
A Workfront Fusion scenario receives a date as the text "2025-03-08T23:30:00-05:00" from an external system. A downstream Workfront field must receive a date value, and the integration must preserve the represented instant rather than treat the text as a local date. The team wants to avoid manually slicing the string because the source format may include different offsets. Which mapping expression is the best fit?
Parsing the ISO date-time with parseDate converts the source text into a date value while respecting its offset; the resulting value can then be mapped as a date. formatDate formats an already parsed date and does not by itself provide a reliable text-to-date conversion. Removing the offset with substring changes the instant and is sensitive to source variations. addDays performs date arithmetic on a date value, so it is not the appropriate parser for arbitrary input text.