- 13 Dec 2023
- 1 Minute to read
- DarkLight
GetIso8601WeekOfYear
- Updated on 13 Dec 2023
- 1 Minute to read
- DarkLight
General
This function returns a Number that contains the week of year according to ISO 8601 for a given Date-Time.
Syntax
You can call the GetIso8601WeekOfYear function using the following syntax:
GetIso8601WeekOfYear(<datetime>)
The parameters of the function are:
Name | Description |
---|---|
datetime | The Date-Time for which to return the week of year. |
Examples
The following expression returns the week of year for the current date-time:
GetIso8601WeekOfYear(DateTime.Today)