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