Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Response.Write(MyDateTimeHelper.GetWeekofyear(DateTime.Now));
 }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Response.Write(MyDateTimeHelper.GetWeekofyear(Convert.ToDateTime("2013-02-16")));
 }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //Response.Write(MyDateTimeHelper.GetWeekofyear(Convert.ToDateTime("2013-02-16")));
     Response.Write($"本周是今年第{MyDateTimeHelper.GetWeekofyear(DateTime.Now)}周.");
 }