[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Converting datetime of the format MM/dd/yyyy HH:mm:ss.fff to yyyy-MM-dd HH:mm:ss.fff  in asp.net C#

Asked by amukta in .NET Framework 1.x, C# Programming Language, .NET Framework 2.x

Hi!

I have a drop down list with  a list of dates in the format  MM/dd/yyyy HH:mm:ss.fff . when I select a date from the dropdown list, it needs to be sent to thae database
and retrieve the information. In the table, the date is of the format  yyyy-MM-dd HH:mm:ss.fff

when the send the value as DateTime.Parse(ddl.selected value.ToString()),

it's not converting the date to the appropriate format.

Please let me know, how can I get the desired format.
Thanks a lot in advance!
[+][-]10/25/09 12:14 PM, ID: 25657756Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/25/09 12:15 PM, ID: 25657761Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/25/09 12:45 PM, ID: 25657896Author Comment

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 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/25/09 01:01 PM, ID: 25657986Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/04/09 06:10 PM, ID: 25746179Expert Comment

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 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625