Skip to main content
The WEEKNUM function returns the week number of a specified date within the year.

Supported Scenarios

The WEEKNUM function is supported in the following YiDA scenarios:
  • Form (main form fields)
  • Form (business association rules)
  • Form (validation)
  • Workflow design (validation rules)
  • Workflow design (association actions)
  • Integration and automation
  • Workflow node
  • Connector

Syntax

Attributes

Return Value

Example

As shown in the figure below, use the WEEKNUM() function to get the week number of a specified date.

Try It

Returns the week number of a specified date. For example, the week that contains January 1 is the first week of the year and is numbered as week 1.