date.weekInYear

Syntax date.weekInYear (date)

Params date is a valid Frontier date

Action Return the number corresponding to the week of the year in which the date falls

Returns The number of the week of the year for the specified date

Examples date.weekInYear (date ("1/8/2000"))

   » 0

date.weekInYear (clock.now())

   » 43

See Also date.dayOfYear

Discuss