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

CSharp examples for System:DateTime Year

Description

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

Demo Code


using System;// w  w w  .j av  a2s.co  m

public class Main{
        /// <summary>
        /// Returns a DateTime representing the specified day in November
        /// in the specified year.
        /// </summary>
        public static DateTime November(this int day, int year)
        {
            return new DateTime(year, 11, day);
        }
}

Related Tutorials