From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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