TimeZoneToUniversalTime Method (DateTime) |
Converts a local time of the current timezone to a Utc time
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public DateTime ToUniversalTime(
DateTime sourceLocalTime
)
Public Function ToUniversalTime (
sourceLocalTime As DateTime
) As DateTime
Parameters
- sourceLocalTime
- Type: SystemDateTime
The local time in the current timezone
Return Value
Type:
DateTimeThe Utc time that is equivalent to the local time in the current timezone.
See Also