Converts the current DateTimeOffset object to a DateTimeOffset value that represents the Coordinated Universal Time (UTC).
| C# | Visual Basic |
public DateTimeOffset ToUniversalTime()
Public Function ToUniversalTime As DateTimeOffset
A DateTimeOffset object that represents the date and time of the current DateTimeOffset object converted to Coordinated Universal Time (UTC).