MonthHelper月份管理类

一、类名Class

类名:PublicFunctions.DateHelper.MonthHelper

 

二、属性Properties

 

三、方法Methods

1、获得月份的第一天

函数:public static DateTime GetFirstDayOfMonth(int year, int month)

返回: DateTime

 

2、获得月份的第一天(重载)

函数:public static DateTime GetFirstDayOfMonth(DateTime date)

返回: DateTime

 

3、获得月份的最后一天

函数:public static DateTime GetLastDayOfMonth(int year, int month)

返回: DateTime

 

4、获得月份的最后一天(重载)

函数:public static DateTime GetLastDayOfMonth(DateTime date)

返回: DateTime

 

5、获得月份的天数

函数:public static int GetTotalDayOfMonth(int year, int month)

返回: int