Create DateTime from specified year, month, and day in CSharp
Description
The following code shows how to create DateTime from specified year, month, and day.
Example
// ww w.jav a 2 s. co m
using System;
public class MainClass{
public static void Main(String[] argv){
DateTime date1 = new DateTime(2010, 8, 18);
System.Console.WriteLine(date1.ToString());
}
}
The code above generates the following result.