datetime class : Minute getter

Description

Gets the minute portion represented by this instance.

Syntax

datetimeInstance.Minute

Arguments

None

Return value

ClassDescription
intMinute portion of datetime (from 0 to 59)

Sample code

1:

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

2:

int minute = dt.Minute; // 13

Notes

It's a wrapper of the System.DateTime.Minute property.

Links for reference

Copyright © Cooker All rights reserved.