troubleshooting Question

String was not recognized as a valid DateTime

Avatar of cmdolcet
cmdolcetFlag for United States of America asked on
Visual Basic.NET
25 Comments1 Solution1205 ViewsLast Modified:
I am getting an error message saying that "Format Exception was unhandled".
I am trying to parse the string: 07/27/11 074854 using the following:
strdate = Date.Parse(Date_Time_Measured).ToString("yyyy MM dd HH:mm:ss")

How can I fix this? also I need to somewhat keep the DateTime parse the same because in newer files I parse out date time as 08/02/11 09:56:24
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 25 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 25 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros