I am working on converting a VB 2003 to VB 2005 and I have run into this error Conversion from string "'5/01/2006'" to type 'Date' is not valid.
on this peice of code.
VB Code:
MonthStartDate = ("'" & _ CStr(MonthCalendar1.SelectionStart.Month) & "/01/" & _ CStr(MonthCalendar1.SelectionStart.Year) & "'")
I know it is a type conversion error but I am not sure how to fix it.




Reply With Quote