我有一个方法,它传递两个参数月和年
我会这样称呼这个方法:MonthDates(2010年1月)
public static string MonthDates(string MonthName,string YearName)
{
return days;
}
Run Code Online (Sandbox Code Playgroud)
如何获得特定月份和年份的日期?
可能重复:
如何获取特定月份和年份的日期
给出以下方法:
GetDaysPerMonth(string monthName, string year);
Run Code Online (Sandbox Code Playgroud)
而值"1"和"2010",我该如何返回指定月份内的天数?