Home Notices Documents Classes Download Others Rice
Classes  >  datetime  >  Day
datetime class : Day getter

Description

Gets the date portion represented by this instance.

Syntax

datetimeInstance.Day

Arguments

None

Return value

ClassDescription
intDate 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.

Links for reference

Copyright © Rice All rights reserved.