Skip to main content
Version: 4.1

DateTimeExtensions

Namespace: System

Assembly: Wisej.Framework (4.1.0.0)

Extends DateTime with methods to adjust the server-side time to the client's timezone.

public class DateTimeExtensions

Methods

Static member ToClientTime(value)

Converts the DateTime value to the time zone of the client's browser.

ParameterTypeDescription
valueDateTimeThe DateTime to adjust to the client's time zone.

Returns: DateTime.

Static member ToClientTime(value, timezoneOffset)

Converts the DateTime value to the time zone of the client's browser.

ParameterTypeDescription
valueDateTimeThe DateTime to adjust to the client's time zone.
timezoneOffsetInt32The time-zone offset in minutes.

Returns: DateTime.