Advertisement

06.22.2007 at 01:33PM PDT, ID: 22652269
[x]
Attachment Details

Date Format in VB.NET

Asked by ramana_mca03 in Microsoft Visual Basic.Net

Tags: format, date

hi,
I am trying to Format my date
but i am getting error;;

Dim mydate As Date = Format(cmbScheduleDate.Text, "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.Text, "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
RamanaStart Free Trial
[+][-]06.22.2007 at 01:38PM PDT, ID: 19344666

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2007 at 01:39PM PDT, ID: 19344671

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2007 at 01:42PM PDT, ID: 19344694

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.22.2007 at 01:53PM PDT, ID: 19344784

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: format, date
Sign Up Now!
Solution Provided By: carmodyk
Participating Experts: 3
Solution Grade: B
 
 
[+][-]06.22.2007 at 02:12PM PDT, ID: 19344894

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32