CSM 10.4 Documentation

Home

Date/Time Modifier

A date/time token displays or performs a date/time calculation (example: Calculate a 15-minute warning for an SLA). The format of the Date/Time value must be taken into consideration when applying date/time modifiers to tokens.

The following modifiers can be applied to date/time tokens.

First of Month

Returns the first day of the month for the specified date/time.

Example:

  • Original token: 9/16/2021
  • Modifier: First of Month
  • Result: 9/1/2021
Last of Month

Returns the last day of the month for the specified date/time.

Example:

  • Original token: 9/16/2021
  • Modifier: Last of Month
  • Result: 9/30/2021
First of Year

Returns the first day of the year for the specified date/time.

Example:

  • Original token: 9/16/2021
  • Modifier: First of Year
  • Result: 1/1/2021
Last of Year

Returns the last day of the year for the specified date/time.

Example:

  • Original token: 9/16/2021
  • Modifier: Last of Year
  • Result: 12/31/2021
First of Week

Returns the first day of the week for the specified date/time. In the U.S., the first day of the week is Sunday, but this can differ depending on location.

Example:

  • Original token: 9/16/2021
  • Modifier: First of Week
  • Result: 9/13/2021
Last of Week

Returns the last day of the week for the specified date/time. In the U.S, the last day of the week is Saturday, but this can differ depending on location.

Example:

  • Original token: 9/16/2021
  • Modifier: Last of Week
  • Result: 9/19/2021

Was this article useful?