- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication
- {
- class Program
- {
- static void Main(string[] args)
- {
- int days = DateTime.DaysInMonth(2008, 2);
- int dayss = DateTime.DaysInMonth(2011, 2);
- Console.WriteLine(days + " " + dayss);
- }
- }
- }
复制代码 |