Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2019 08:47 AM
Try this:
var t = new GlideDateTime();
var f = new GlideDateTime('2019-04-08 16:43:33');
var dur = GlideDateTime.subtract(t, f);
var duration = dur.getNumericValue();
var durationSeconds = (duration/1000);
gs.info(t);
gs.info(dur.getDisplayValue());
gs.info(durationSeconds );
Please mark my response as correct and helpful if it helped solved your question.
-Thanks