datetime class : Day getter
Description
Gets the date portion represented by this instance.
Syntax
datetimeInstance.Day
Arguments
None
Return value
Class | Description |
int | Date portion of datetime (from 1 to 31) |
Sample code
1: | datetime dt = new datetime(2016, 3, 4, 4, 13, 0); |
2: | int day = dt.Day; // 4 |
Notes
It's a wrapper of the System.DateTime.Day property.