Convert and populate date of String type to the Date type field using field map script(transform map
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Here is the script:
(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {
var dtObj = new GlideDate();
dtObj.setDisplayValue(source.u_actual_date, "dd-MMM-yyyy");
var dtVar = dtObj.getByFormat("MM-dd-yyyy");
target.actual_date= dtVar;
})(source, map, log, target);

