How to get the UTC DateTimeFormat

Posted on 2009-07-02
Last Modified: 2013-12-17

I have a string like 090702103455. I want to convert this string to UTC DateTimeFormat.
I Know there is a Function TryParse in DateTime. which will take TryParse(String, dt).
String^ str =090702103455;
DateTime dt;
DateTime::TryParse(str, dt)
It is not parsing. Can you please suggest how to convert or format ?

Open in new window

Question by:vishnu_kavalakuntla
  • 4
  • 2
LVL 14

Expert Comment

ID: 24762051

Try this


Author Comment

ID: 24762230
Hi John,

Thank you for your reply, Acually the problem is whatever the string which i am passing is datetime.
it is 09-07-02-10-34-55(utc time). I got this format as a string which i have send previously. but i want to  convert this into UtcDateTime format.
any help, i have tried the above suggestion,but no result.

LVL 15

Expert Comment

ID: 24764019
what is your input ?

09-07-02-10-34-55 or 090702103455
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.


Author Comment

ID: 24775729
Hello John,

Thanks i did.

how to give rating..
LVL 14

Accepted Solution

GiftsonDJohn earned 500 total points
ID: 24793247
Close the question by accepting the solution as answer. There you will get an option to choose among.

Author Closing Comment

ID: 31599122
Thanks John,
For your assistance.

Author Comment

ID: 24802792
This question is completed.

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Object Oriented Programming, C#, referencing, scoping. 13 86
Install IIS7.5 on Windows Sever 2012 R2 4 32
C# Service FileSystemwatcher isse 9 46
Adjust the codes 3 33
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question