Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Local Time (DateTime)
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("Pacific Standard Time"); //TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("US Eastern Standard Time"); //TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time"); //TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("W. Europe Standard Time"); var issuedDateTime = DateTime.Parse("2016-08-10T00:00:00.0000000"); DateTime newDateTime = TimeZoneInfo.ConvertTime(issuedDateTime, timeZoneInfo); Console.WriteLine(newDateTime); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
sdfrgthyjukioikujyhtgrfds
JAVA HELLO
SHA Tester 2.0
NumberToWords C# Structural
Fórum ➡ GroupJoin'ing Books and Orders ( with Zip'ped output ) ♦
Expand Treeview Job Entry
3. Delegates and events: closure
T
c++
linqs
Please log in to post a comment.