Returns a DateTime representing the specified day in October in the specified year. - CSharp System

CSharp examples for System:DateTime Year

Description

Returns a DateTime representing the specified day in October in the specified year.

Demo Code


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);
        }
}

Related Tutorials