Difference between revisions of "DateTime.Day"

From Xojo Documentation

(Created page with "N/A")
 
 
Line 1: Line 1:
N/A
+
{{PropertyBox
 +
| name=Day
 +
| owner=[[DateTime]]
 +
| ownertype=class
 +
| scope=public
 +
| type=[[Integer]]
 +
| readonly = yes
 +
| platform=all
 +
| newinversion=2019r2
 +
}}
 +
{{Description
 +
|text = The day number of the date. }}
 +
 
 +
==Sample Code==
 +
The following displays the current day:
 +
<rbcode>
 +
Var d As DateTime = DateTime.Now
 +
Label1.Value = d.Day.ToString
 +
</rbcode>

Latest revision as of 19:46, 8 August 2019

Read-Only Property (As Integer )
IntegerValue = aDateTime.Day

New in 2019r2

Supported for all project types and targets.

The day number of the date.

Sample Code

The following displays the current day:

Var d As DateTime = DateTime.Now
Label1.Value = d.Day.ToString