G
Guest
I have a DateTimePicker control that originally displays "1/1/1900" on
screen. I want to change it to current date when a user clicks on it. I use
the follow code but nothing is happening. Can someone tell me what I'm doing
wrong?
Thanks, Alpha
private void dtpLastOdoDate_Click(object sender, System.EventArgs e)
{
dtpLastOdoDate.Value = DateTime.Today.Date;
}
screen. I want to change it to current date when a user clicks on it. I use
the follow code but nothing is happening. Can someone tell me what I'm doing
wrong?
Thanks, Alpha
private void dtpLastOdoDate_Click(object sender, System.EventArgs e)
{
dtpLastOdoDate.Value = DateTime.Today.Date;
}