Need to Change my Date to UTC Format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2020 10:47 PM
Hi Everyone,
I am integrating Servicenow to IGC(Which is 3rd party Application) through Servicenow Workflow.
i am able to pass all the field values into IGC,but due_date value is not passing to IGC(showing error:Unable to parse the Date Format)
Date format in IGC is UTC, so in Run script how can i changes my Date format to UTC.
If anyone knows, please let me know, i need to submit this task ASAP
Thank you,
Aswartha

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2020 10:51 PM
Hello,
I guess UST time is same as GMT time.
then its to easy you can use GlideDateTime() this will always return you GMT and then pass it to your API.
BR
Nitesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2020 01:28 AM
Hi Nitesh,
I need to convert to UTC through SNow Workflow Activity
1)On Catalog page, Variable name is due_date
2)Run script: var date1 = current.variables.due_date(in Servicenow it comes with IST Format)
3)try {
var r = new sn_ws.RESTMessageV2('Creating Terms in IGC with Snow workflo', 'Post Terms');
r.setStringParameterNoEscape('custom_Due date',date1 ); (in IGC date in UTC Format)
but i am getting Error this way,if you have any idea please help me,
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2020 10:52 PM
Hi,
Which timezone is this? If it is same as GMT/UTC then no need to convert; directly pick value and send it across
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2020 01:17 AM
Sorry Ankur,
i need to convert into UTC through workflow Runscript Activity