DateTime
Get Week Number
5min
this action returns the week number for a datetime datetime obs the week number indicates where the week falls numerically within a year inputs & outputs \[ i ] date datetime datetime for which to get the week number \[ i ] first week rule drop down 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 drop down sunday ➜ uses sunday as first day of the week monday ➜ used monday as first day of the week \[ o ] week number integer 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