• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 563
  • Last Modified:

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

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
JDL129
Asked:
JDL129
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss \"GMT\"zzz");
0
 
Minh Võ CôngCommented:
0
 
JDL129Author Commented:
Thanks sedgwick!!!  Good Job!!!
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now