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