CSharp examples for System:DateTime Year
Returns a DateTime representing the specified day in October in the specified year.
using System;/*www. jav a2 s . co m*/ public class Main{ /// <summary> /// Returns a DateTime representing the specified day in October /// in the specified year. /// </summary> public static DateTime October(this int day, int year) { return new DateTime(year, 10, day); } }