Gets the date from Year 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>
/// <returns></returns>
public static DateTime GetDate(int year)
{
return new DateTime(year, 1, 1);
}
}
}
Related examples in the same category