# yWeek(aDate)

Converts timestamp to week of the year.

### Syntax

o_yWeek(aDate)
  aDate: scalar Timestamp
  return: Int

### Usage

Determines the week of the year given specified timestamp.

### Location

menu: veeos ==> Date/Time ==> yWeek

library: veeosLib

### Example

o_yWeek(now()) returns the current week of the year.

### Notes

VEE has built-in functions for day, month, year, but not time. This helps complete the set of Time/Date functions. Week in this case is defined by ISO-8601. Original version posted to VRF by Delmar Fryd in November 2012.

### Reference

- ISO-8601 is an international standard for time and date representation.

### Supported On

VEE 7.0+, All platforms.

### See Also

time, yDay, timeZone, utcNow, unixNow, ywTodate

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 09 August 2021 18:32.