Nerddette
04-21-04, 10:01 PM
Hi,
I am using VB.Net to create an application which includes a Date Time Picker. I have set the minimum and maximum dates which works fine.
I have a reset button on the form. When this is clicked, I want to reset the date time picker to the minimum date.
I have tried:
dtpStartDate.MinDate() but it tells me I have to give the value which is 20/01/1988 but obviously this is not the correct format. Also I think this command actually changes the Min date which I don't want to do.
dtpStartDate.Value(dtpStartDate.MinDate) but that didn't work either!
Please Help!
Nerddette
I am using VB.Net to create an application which includes a Date Time Picker. I have set the minimum and maximum dates which works fine.
I have a reset button on the form. When this is clicked, I want to reset the date time picker to the minimum date.
I have tried:
dtpStartDate.MinDate() but it tells me I have to give the value which is 20/01/1988 but obviously this is not the correct format. Also I think this command actually changes the Min date which I don't want to do.
dtpStartDate.Value(dtpStartDate.MinDate) but that didn't work either!
Please Help!
Nerddette