- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 02:02 AM
Hi,
In my xlsx file the Date filed is written: 04-AUG-2022
Is there any way to change the date format in the transform map so it will know how to get this format from the xlsx file?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 03:23 AM
Hi @Alon Grod ,
No we don't have that date format in ServiceNow. ServiceNow date fields will not take if you pass 04-AUG-2022 like this.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 02:43 AM
Im not getting the date field.
xlsx file:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 02:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 02:54 AM
Have you tried like below-
var sd = new GlideDate();
sd.setValue( source.<date_attribute>)
var formatedDate=sd.getByFormat('D-M-yyyy');
return formatedDate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 02:27 AM
Hi,
This is out of topic! I tried to post a question in the developer forum, but it is still waiting for some approval. How can I get it approved? and post the question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 02:28 AM
Hi @Alon Grod ,
Have a look at this post.
https://www.servicenow.com/community/developer-forum/date-format-transform-maps/m-p/1559129