2
I can assign value to it just don’t know how to assign a Yesterday
private void Form1_Load(object sender, EventArgs e) { dateTimePicker1.Value = DateTime.Today; }
2
I can assign value to it just don’t know how to assign a Yesterday
private void Form1_Load(object sender, EventArgs e)
{
dateTimePicker1.Value = DateTime.Today;
}
3
dateTimePicker1.Value = DateTime.Today.AddDays(-1);
Browser other questions tagged c# datetime visual-studio-2017
You are not signed in. Login or sign up in order to post.