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 ();