Get the day of the month represented by DateTime in CSharp
Description
The following code shows how to get the day of the month represented by DateTime.
Example
/*from ww w . j a v a2s . c o m*/
using System;
public class MainClass{
public static void Main(String[] argv){
DateTime dateGregorian = new DateTime(2009, 1, 13);
System.Console.WriteLine(dateGregorian.Day);
}
}
The code above generates the following result.