Solved

How do I do a C# date time format including time zone

Posted on 2013-06-13
3
504 Views
Last Modified: 2013-06-13
Hey Guys!!

I need to enter the current date and time along with the time zone in a C# program.

Any ideas?

Thanks,

Jerry
0
Comment
Question by:JDL129
3 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 150 total points
ID: 39243950
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss \"GMT\"zzz");
0
 
LVL 15

Expert Comment

by:Minh Võ Công
ID: 39243990
0
 

Author Closing Comment

by:JDL129
ID: 39244155
Thanks sedgwick!!!  Good Job!!!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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