System.DateTimeOffset.UtcNow

Gets a DateTimeOffset object that is set to the current date and time expressed in the UTC (Coordinated Universal Time) format whose offset is zero.


System.DateTimeOffset oDateTimeOffset; 
oDateTimeOffset = System.DateTimeOffset.UtcNow;
System.Diagnostics.Debug.Print(oDateTimeOffset.ToString("T"));
// 8:19:43 PM



© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext