string yday=string.Empty; yday = DateTime.Now.AddDays(-1).ToString("ddMMyy"); Label1.Text = yday;
DateTime yesterdayDate = DateTime.Now.AddDays( -1 ); Label1.Text = yesterdayDate.ToString();
string YesterdayDate= DateTime.Now.AddDays(-1).ToString("ddMMyy"); Label1.Text = YesterdayDate;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)