week

Returns the week of the year as a number.

Function

result = week(input)

Arguments

ArgumentData Type
inputdate (datetime will be implicitly cast to date)
resultinteger

Comments

This function operates in the local time-zone if a datetime input is provided. See Dates, Times and Time Zones.

Examples

result = week(#2019-05-30#) /* result = 22 */
result = week(getdate())