Home Cooker Classes Others Rice CookerGX
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

datetime dt = new datetime(2016, 3, 4, 4, 13, 0);

int day = dt.Day;//4

Notes

It's a wrapper of the System.DateTime.Day.

Links for reference

Copyright © Rice All rights reserved.