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