how to get the days for particular month and year

后端 未结 4 798
天涯浪人
天涯浪人 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 18:10

    System.DateTime.Now.Month
    System.DateTime.Now.Year
    System.DateTime.Now.Day
    

    And so on.........You have lots of things you can get from DateTime.Now

提交回复
热议问题