Home Cooker Classes Others Rice CookerGX
Classes  >  datetime  >  Month
datetime class : Month getter

Description

Gets the month portion represented by this instance.

Syntax

datetimeInstance.Month

Arguments

None

Return value

ClassDescription
intMonth portion of datetime (from 1 to 12)

Sample code

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

int month = dt.Month;//3

Notes

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

Links for reference

Copyright © Rice All rights reserved.