lang • week

Week

Result = Week ( Date [ , FirstDayOfWeek , FullWeek ] )

Return the week number from a given date.

By default, the first day of the week is Monday, and partial weeks are counted.

Note that this function can return zero if we are before the first week of the year.

Examples

Print Week("07/24/2005")
29
Print Week("01/01/2005")
0
Print Week("01/01/2004")
1

See also