using System;
namespace cuidian.Common
{
public class DateTimeUtils
{
///
/// 获得月初日期
///
///
///
public static DateTime GetFirstMonthDate(DateTime date)
{
return new DateTime(date.Year, date.Month, 1);
}
///
/// 获得月末日期
///
///
///
public static DateTime GetEndMonthDate(DateTime date)
{
return date.AddMonths(1).AddDays(-1);
}
}
}