TimeZonesConvert Method (String, String, 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 "." or "-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(
string sourceTZ,
string destTZ,
DateTime dt
)
Public Function Convert (
sourceTZ As String,
destTZ As String,
dt As DateTime
) As DateTime
Parameters
- sourceTZ
- Type: SystemString
The source timezone. - destTZ
- Type: SystemString
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