Click or drag to resize

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
)

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: DateTime
The date/time converted to the user's local timezone.
See Also