GetIso8601WeekOfYear

Prev Next

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 Function 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 Function Example

GetIso8601WeekOfYear(DateTime.Today)