-
Date Time Picker Problem
If the user selects Any day via a date time picker, is there a way to display the day previous to that. For instance, on form_Load, if the following code was used:
dim temp as date
temp = DateTimePicker1.Value.Date
Can i do something like:
temp = temp - 1
msgBox(temp)
.................................
I don't know much about DateTimePickers, but can you access dates via Index number or something like that. That would solve mu problem as well.
Thanks,
Spectrum
-
Code:
temp = DateAdd(DateInterval.Day, -1, DateTimePicker1.Value)