SessionConvertToUserTime Method |
Convert the specified date/time to the user's local
TimeZone. If no source timezone is provided, UTC is assumed.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public DateTime ConvertToUserTime(
DateTime dt,
TimeZone tz = null
)
Public Function ConvertToUserTime (
dt As DateTime,
Optional tz As TimeZone = Nothing
) As DateTime
Parameters
- dt
- Type: SystemDateTime
The date/time to convert. - tz (Optional)
- Type: NetQuarryTimeZone
Optional timezone of the specified date, UTC is assumed if no timezone is specified.
Return Value
Type:
DateTimeThe date/time converted to the user's local timezone.
See Also