Schedule for the fifth instance of a day of the week

When selecting a date near the end of a month for a repeating monthly schedule, it is possible to select a date that computes to the fifth instance of that week day.

About this task

ServiceNow offers three options for handling months that do not have a matching fifth instance of the selected day.
  • Last: ServiceNow selects the last instance of the week day in the month.
  • Next: ServiceNow selects the first instance of the week day in the next month.
  • Strict: ServiceNow skips any month without a matching fifth instance and selects only months that have a matching fifth instance.

The system property glide.schedules.fifth controls how a schedule entry that selects the fifth occurrence of a week day behaves in months containing only four occurrences of that day. This property is only valid when the glide.schedules.repeat_nth property is set to Day.

The following example illustrates computing what day of the month a schedule repeats on when the schedule starts on the fifth instance of a week day in the month.

Procedure

  1. Navigate to sys_properties.list.
  2. Open the glide.schedules.fifth property.
  3. Verify that the Value is set to last.
  4. Navigate to System Scheduler > Schedules > Schedules, define a new schedule, and click Submit.
  5. Open the new schedule and in the Schedule Entries related list, create a new entry with the following parameters:
    • When: November 29, 2012 at 10:00 to November 29, 2012 at 11:00
    • Repeats: Monthly
    • Monthly type: Day of the Week
    • Starting: November 29 (note that November 29 is the fifth Thursday in the month)
    Example Nov 2012
  6. Click Submit.
  7. Open the same schedule entry.

    Note that the form says "Every month on the fifth Thu."

    Fifth Thu
    The schedule for the first three months is computed as:
    • November 29, 2012 (5th Thursday of the month)
    • December 27, 2012 (Last Thursday of the month)
    • January 31, 2013 (5th Thursday of the month)
  8. If the Value on the glide.schedules.fifth property is set to next instead of last in step 3, the schedule for the first three months is computed as:
    • November 29, 2012 (5th Thursday of the month)
    • January 3, 2012 (1st Thursday of the next month since December 2012 does not have five Thursdays)
    • January 31, 2013 (5th Thursday of the month)
  9. If the Value on the glide.schedules.fifth property is set to strict instead of last in step 3, the schedule for the first three months is computed as:
    • November 29, 2012 (5th Thursday of the month)
    • No meeting (December 2012 skipped because it does not have five Thursdays)
    • January 31, 2013 (5th Thursday of the month)