NevronOpenVision
Nevron.Nov Namespace / NTimeZone Class / ConvertTime Method / ConvertTime(DateTime,NTimeZone,NTimeZone) Method
The date and time to convert.
The time zone of dateTime.
The time zone to convert dateTime to.
ConvertTime(DateTime,NTimeZone,NTimeZone) Method
Converts a time from one time zone to another.
Syntax
public static System.DateTime ConvertTime( 
   System.DateTime dateTime,
   NTimeZone sourceTimeZone,
   NTimeZone destinationTimeZone
)

Parameters

dateTime
The date and time to convert.
sourceTimeZone
The time zone of dateTime.
destinationTimeZone
The time zone to convert dateTime to.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

See Also