Xojo.Core.Date.Year

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aXojo.Core.Date.Year

Supported for all project types and targets.

The year portion of the date.

Sample Code

Get the year:

Var d As Xojo.Core.Date = Xojo.Core.Date.Now
Var year As Integer = d.Year