Hello, I have a variable for startdate as shown below.
Dim startDate as Datetime
startDate = Convert.ToDateTime(datepicker1.text).ToString("dd-MMM-yyyy")
In the immediate window if I try Convert.toDate(datepicker1.text).toString("dd-MMM-yyyy") it is showing date as 29-Sep-2009 but the value of startDate is 09/29/2009
I really don't understand why the value is not set in startDate variable as 29-Sep-2009
Any thoughts?