首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

C#NET输入一个日期,要求输出阴历求解

2012-10-18 
C#.NET输入一个日期,要求输出农历求解using Systemusing System.Collections.Genericusing System.Webu

C#.NET输入一个日期,要求输出农历求解
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page 
{
  protected void Page_Load(object sender, EventArgs e)
  {

  }
  protected void btnok_Click(object sender, EventArgs e)
  {
  Session["year"] = year.Text;
  int y = Convert.ToInt32(Session["year"]);
  if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0)
  {
  Response.Write(Session["year"] + "是闰年");
  }
  else
  {
  Response.Write(Session["year"] + "不是闰年");
  }


   
  }
}
把农历的写进去要怎写啊?

[解决办法]
http://blog.csdn.net/zhoufoxcn/article/details/1896258

热点排行