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
ā03-03-2026 06:43 AM
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
ā03-03-2026 06:51 AM
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
ā03-03-2026 07:21 PM
Hope you are doing good.
Did my reply answer your question?
š” 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
ā03-04-2026 08:51 AM
Hi @Ankur Bawiskar ,@Swapna Abburi
It is not working as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-03-2026 06:55 AM
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.
