how to get the days for particular month and year

后端 未结 4 755
天涯浪人
天涯浪人 2021-01-13 17:37

I have a method which passes two parameters Month and year

i will call this Method like this : MonthDates(January,2010)

public static string MonthDa         


        
4条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 17:58

    do you mean the number of days in a month?

    System.DateTime.DaysInMonth(int year, int month)
    

提交回复
热议问题