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

CSharp examples for System:DateTime Year

Description

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

Demo Code


using System;//from w w w  . j a va2  s  . com

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

Related Tutorials