Convert and populate date of String type to the Date type field using field map script(transform map
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi Everyone,
I need script for Convert and populate date of String type to the Date type field using field map script(transform map).
Thanking for your response in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
you need not worry to convert string to Date
If your excel/file contains date in MM-dd-yyyy format then simply set that format in your field map and system takes care of everything
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
You can specify the date format in the transform map field mapping. This will convert the string data from your source record to the date and time format you gave and map the data to target field.
Please refer to attached screenshot.

