Tinderbox v11 Icon

year(aDate)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Data Type Returned: 

Operator First Added: 

Operator in Current Baseline: 

Operator Last Altered: 

Operator Has Newer Dot-Operator Variant: 

 Function  [other Function type actions]

 Item  [operators of similar scope]

 Date-time  [other Date-time operators]

 Number [about Number data type]

 v5.0.0

 Baseline

 As at baseline

Yes


year(aDate)

returns the year from the theDate date/time expression:

$MyNumber = year($MyDate); 

Alternatively, use Date.year.

Note that the double-argument version that alters Dates is documented separately: see year(aDate, yearsNum).


See also—notes linking to here: