I have DateTimepicker1 and DateTimePicker2 . I need to get the specific value of day from DT1 to DT2.
ex. DT1 = Sept 27, 2013 and DT2 = Sept Oct 2, 2013
i want to get the value 27,28,29,30,1,2 to integer
this is my code but only works in day 1 to 30.
For mcount = DateTimePicker1.Value.Day To DateTimePicker2.Value.Day
' value = mcount
Next
Can anyone help me in this?.. thanks
How about:
For mcount = DateTimePicker1.Value To DateTimePicker2.Value
value = mcount.Day
Next