CSharp examples for System:DateTime Year
Returns a DateTime representing the specified day in July in the specified year.
using System;/*from w ww. j av a 2s. c o m*/ public class Main{ /// <summary> /// Returns a DateTime representing the specified day in July /// in the specified year. /// </summary> public static DateTime July(this int day, int year) { return new DateTime(year, 7, day); } }