Tinderbox v10 Icon

Date.week()


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Data Type Returned: 

Operator First Added: 

Operator in Current Baseline: 

Operator Last Altered: 

 Property  [other Property type actions]

 Item  [operators of similar scope]

 Date-time  [other Date-time operators]

 Number [about Number data type]

 v7.5.0

 Baseline

 As at baseline


Syntax note: Operators without any defined mandatory arguments may omit their empty closing parentheses


Date.week()

Date.week

The Date operator .week() returns the number of the week in the current year. For example, January 1 is in week 1.

Be aware that to allow for the fact the calendar year and week start are only aligned every seventh year, in some years days that the very end of the year may report as week #53.

Date.week() is read-only.

$MyNumber = $MyDate.week(); 

Thus is $MyDate is 4 January, $MyNumber would be 1.