Xojo Documentation
Xojo Documentation
Home
Getting Started
Get Started with Xojo
QuickStarts
Tutorials
Pi Programming
More Guides
Resources
In-Depth Guides
User Guide
Language Reference
Resources
Release Notes
System Requirements
Deprecations
Videos
Feedback
About
Usage
Copyrights and Trademarks
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information
DateTime.Year
From Xojo Documentation
Read-Only Property
(As
Integer
)
Integer
Value
=
a
DateTime
.
Year
New in 2019r2
Supported for all project types and targets.
The year portion of the date.
Sample Code
The following code displays the current year.
Var
d
As
DateTime = DateTime
.
Now
Label1
.
Value = d
.
Year
.
ToString
Categories
:
New2019r2
Properties