TimeZonesConvert Method (Int32, Int32, DateTime) |
Converts a date/time between two arbitrary timezones. If either the source or destination timezones
are not known then the unconverted date/time is returned. Note that as elsewhere you can use 0 for
UTC and -1 for the user local timezone.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public DateTime Convert(
int sourceTZ,
int destTZ,
DateTime dt
)
Public Function Convert (
sourceTZ As Integer,
destTZ As Integer,
dt As DateTime
) As DateTime
Parameters
- sourceTZ
- Type: SystemInt32
The source timezone. - destTZ
- Type: SystemInt32
The destination timezone. - dt
- Type: SystemDateTime
The date/time to convert.
Return Value
Type:
DateTimeThe date/time, converted if both timezones are valid, else unconverted.
See Also