C#编程:用IsLeapYear判断闰年
private void button1_Click(object sender, EventArgs e) { MessageBox.Show(DateTime.IsLeapYear(int.Parse(DateTime.Now.ToString("yyyy"))).ToString()); }