Convert Duration into minute
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2017 03:50 AM
I have a field on incident table of duration type which contains days hours and minute . Is it possible to convert into minute and auto populate into another field.
Thanks,
Sourabh
Labels:
- Labels:
-
Personal Developer Instance
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2017 04:12 AM
Check the 5th one in the link,
http://wiki.servicenow.com/index.php?title=Setting_the_Duration_Field_Value#gsc.tab=0
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2024 07:35 AM
var a = current.time_worked.getGlideObject().getNumericValue()
gs.addInfoMessage(a);
var durationMin = (a/1000/60);
gs.addInfoMessage(durationMin);