Objective: Given a string in UTC format, convert it to a easily readable format
Solution:
string input = "2006-06-14T17:15:55.197-07:00";
string output = Convert.ToDateTime(input).ToString("f");
Assuming the culture is en-US, the variable "output" will be set to the value "Wednesday, June 14, 2006 5:15 PM".
References:
.NET Framework Developer's Guide
Wednesday, June 21, 2006
Subscribe to:
Posts (Atom)
What is success?
The journey of life takes us through varied experiences like landing an admission at a prestigious college, earning a degree, getting hired,...
-
Recently after a domain password change, I got the following error in trying to run the webrole. Can not log on locally to WebRole as us...
-
In trying to setup a site on a Windows 2008 server, I ran into the following error message Handler "PageHandlerFactory-Integrated"...
-
For some reason, Hive metastore.exe (which runs as a service) did not create the metastore db that is required for Hive to store table defi...