PROCESIO
OverviewPlatform ActionsIntegrations & DemosCustom ActionsDeveloperโ€™s Guide

Get Week Number

This action returns the week number for a DateTime.&x20;

This action returns the week number for a DateTime.

Obs: The week number indicates where the week falls numerically within a year.

Inputs & Outputs

  • [ I ] Date: DateTime for which to get the week number.
  • [ I ] First week rule: Drop-down
    • First Day โžœ Indicates that the first week of the year starts on the first day of the year and ends before the following designated first day of the week.
    • First Full Week โžœ Indicates that the first week of the year is the first week with four or more days before the designated first day of the week.
    • First Four Day Week โžœ Indicates that the first week of the year begins on the first occurrence of the designated first day of the week on or after the first day of the year.
  • [ I ] First day of week: Drop-down
    • Sunday โžœ Uses Sunday as first day of the week.
    • Monday โžœ Used Monday as first day of the week.
  • [ O ] Week number: Integer representing the extracted week number.

Example Usage

  • Drag action onto canvas to get familiarized with it.

  • Declare some variables to be used with the action.

  • Assign the newly created variables.
  • Save & Run the process and then Check Instance to see the output.

Use Cases

  • Determining the week number for a given date.

On this page