Returns the week of the year as a number.
Function
result = week(input)
Arguments
Argument | Data Type |
input | date (datetime will be implicitly cast to date) |
---|---|
result | integer |
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())