Advertisement

07.23.2008 at 07:39AM PDT, ID: 23588650
[x]
Attachment Details

date format problem from and to SQL

Asked by CraigLazar in .NET, Microsoft Visual Basic.Net

Hi,
VB.net 2005 and SQL 2005
 i am battling to format my date.
I have a data reader querying a table in SQL and it returns to me a date "14/09/2008" assigned to a string variable QE_Date
then i need to use this value in an update statement back into sql by executing it in a SQL command object.
The statement is failing as its not in yyyy-MM-dd format going back into SQL. I have tried the string.format(QE_Date,"yyyy/MMM/dd") but it does nothing to the format, it still remains dd/mm/yyyy

thanks allotStart Free Trial
[+][-]07.23.2008 at 07:51AM PDT, ID: 22069921

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.

 
[+][-]07.23.2008 at 08:00AM PDT, ID: 22070010

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.

 
[+][-]07.23.2008 at 08:06AM PDT, ID: 22070060

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

Zones: .NET, Microsoft Visual Basic.Net
Sign Up Now!
Solution Provided By: jpaulino
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.23.2008 at 09:26AM PDT, ID: 22070950

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.

 
[+][-]07.23.2008 at 09:46AM PDT, ID: 22071150

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.

 
[+][-]07.23.2008 at 08:38PM PDT, ID: 22075944

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.

 
[+][-]07.24.2008 at 01:08AM PDT, ID: 22076934

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.

 
[+][-]07.29.2008 at 08:52AM PDT, ID: 22112735

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.

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