TimeZoneHelper.FromClientTime(DateTime, String, String) Method
Converts a time interval from one specified time zone to another.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.Core.dll
Declaration
public DateTime FromClientTime(
DateTime dateTime,
string targetTimeZoneId,
string clientTimeZoneId
)
Parameters
Name | Type | Description |
---|---|---|
dateTime | DateTime | A DateTime value in the specified client time zone. |
targetTimeZoneId | String | A string that specifies the destination time zone. The string must be one of the available System.TimeZoneInfo.Id values. |
clientTimeZoneId | String | A string that specifies the client (source) time zone. The string must be one of the available System.TimeZoneInfo.Id values. |
Returns
Type | Description |
---|---|
DateTime | A DateTime value in the specified target time zone. |
See Also