CSharp examples for System:DateTime Year
Returns a DateTime representing the specified day in June in the specified year.
using System;//from www . j a va 2s . c om public class Main{ /// <summary> /// Returns a DateTime representing the specified day in June /// in the specified year. /// </summary> public static DateTime June(this int day, int year) { return new DateTime(year, 6, day); } }