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

cathy_cyy cathy_cyy 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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"] + "不是闰年");
}



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

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
cathy_cyy
C# 111,129 成员 642,538 内容