Get date time

xiaoxiao2021-03-05  21

System.datetime Today = system.datetime.now.date; int D = convert.Toint32 (Today.Dayofwek); system.datetime sunday = today.dddays (-d); // This week's Sunday system.datetime friday = Today.adddays (6-d); // This week's weekend this.TextBox1.text = sunday.tolongdateString (); this.TextBox2.text = friday.tolongdateString ();

转载请注明原文地址:https://www.9cbs.com/read-38980.html

New Post(0)