本文介绍了如何获得特定月份和年份的天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个将两个参数传递月份和方法每年
I have a method which passes two parameters Month and year
我会叫这样这个方法:MonthDates(2010年1月)
i will call this Method like this : MonthDates(January,2010)
public static string MonthDates(string MonthName,string YearName)
{
return days;
}
如何获得的天特别的月份和年份?
How to get the days for particular month and year?
推荐答案
你的意思是在一个月的天数?
do you mean the number of days in a month?
System.DateTime.DaysInMonth(int year, int month)
这篇关于如何获得特定月份和年份的天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!