DateTimeExtensions

System.DateTimeExtensions

Namespace: System

Assembly: Wisej.Framework (4.0.0.0)

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

public class DateTimeExtensions

Methods

ToClientTime(value)

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

Parameter
Type
Description

value

The DateTime to adjust to the client's time zone.

Returns: DateTime.

ToClientTime(value, timezoneOffset)

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

Parameter
Type
Description

value

The DateTime to adjust to the client's time zone.

timezoneOffset

The time-zone offset in minutes.

Returns: DateTime.

Last updated

Was this helpful?