GlideElement - getGlideObject()

Gets a glide object.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Object A Glide object.

function calcDateDelta(start, end, calendar) {
  var cal = GlideCalendar.getCalendar(calendar);
  if (!cal.isValid())
      return null;
  var realStart = start.getGlideObject();
  var realEnd = end.getGlideObject();  
  var duration = cal.subtract(realStart, realEnd);
  return duration;
}