Gets the default calendar. Default calendar is defined at domain level and it has following rules by default:

  • Work Days ( Monday, Tuesday, Wednesday, Thursday, Friday )
  • 09:00 - 18:00

Calendars rules can be change by editing domain properties. If you need a basic calendar without more simple rules you can use the $Calendar.GetWeekendCalendar or $Calendar.GetStandardCalendar properties.

Usage Example
var today = $Calendar.GetToday();
var etaHours = 4;

// Evaluate the Estimated time of arrival date
$Xml.SetValue('ETA', $Calendar.Add( today, etaHours ));

Please refer to Calendar object for more details.

  • No labels