hi,
I am trying to Format my date
but i am getting error;;
Dim mydate As Date = Format(cmbScheduleDate.Tex
t, "MM/dd/yyyy")
cmbScheduleDate.Text Value is 05/30/2007 10:00 AM
I am getting error :Conversion from string "MM/dd/yyyy" to type 'Date' is not valid
even i tried taking value in to string insted of date
like Dim mydate As String = Format(cmbScheduleDate.Tex
t, "MM/dd/yyyy")
if i write this line i am getting mydate value is "MM/dd/yyyy"
i dont know why
i am using VB.NET 2005
can any one help me
thanks
Ramana
Start Free Trial