Get the minute component of the date represented by DateTime in CSharp
Description
The following code shows how to get the minute component of the date represented by DateTime.
Example
using System;//ww w .j av a 2 s.co m
public class MainClass{
public static void Main(String[] argv){
System.DateTime moment = new System.DateTime(
2014, 1, 13, 3, 57, 32, 11);
int minute = moment.Minute;
System.Console.WriteLine(minute);
}
}
The code above generates the following result.