website logo
πŸ”­Overview
πŸ’ΌPlatform Actions
πŸ’œIntegrations
🧰Custom Actions
πŸ› οΈDeveloper's Guide
Navigate through spaces
⌘K
πŸ“•Call API
πŸ“•Generate Document
πŸ“•Call Subprocess
πŸ“•Decisional
βš“Decisional Further Reading
πŸ“•Join
πŸ“•Delay
πŸ“•For Each
πŸ“•Get File Data
πŸ“•Map Process Data
βœ‰οΈSend Email
πŸ“¬Inbound email
πŸ“Database
πŸ“Documents
πŸ“DateTime
πŸ“FTP/sFTP
πŸ“Json
πŸ“XPath
πŸ“Lists
πŸ“Numerical
πŸ“Strings
πŸ“Converters
πŸ“Excel
πŸ“Scripting
πŸ“Utilitary
πŸ“Pdf
πŸ“Beta
Docs powered byΒ archbeeΒ 

Get Week Number

7min

This action returns the week number for a DateTime.

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

Document image
ο»Ώ

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.
Document image
ο»Ώ

Example Usage

  • Drag action onto canvas to get familiarized with it.
Document image
ο»Ώ
  • Declare some variables to be used with the action.
Document image
ο»Ώ
  • Assign the newly created variables.
  • Save & Run the process and then Check Instance to see the output.
Document image
ο»Ώ

Use Cases

  • Determining the week number for a given date.

ο»Ώ

Updated 03 Apr 2023
Did this page help you?
Yes
No
PREVIOUS
Get Minute
NEXT
Get Day Of Week
Docs powered byΒ archbeeΒ 
TABLE OF CONTENTS
Inputs & Outputs
Example Usage
Use Cases