Mega Code Archive

 
Categories / C# / Date Time
 

Gets the date from Year, Month and Day integer

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Cmoss.Util {     public class DateFunctions     {         /// <summary>         /// Gets the date.         /// </summary>         /// <param name="year">The year.</param>         /// <param name="month">The month.</param>         /// <param name="day">The day.</param>         /// <returns></returns>         public static DateTime GetDate(int year, int month, int day)         {             return new DateTime(year, month, day);         }     } }