# week(aDate)

Converts timestamp to week of the year.

### Syntax

o_week(aDate)
  aDate: scalar Timestamp
  return: Int

### Usage

Determines the week of the year given specified timestamp.

### Location

menu: veeos ==> misc ==> week

library: veeosLib

### Example

o_week(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

© 2015-2017. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 24 February 2017 09:07.