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.
- C#
- VB.NET
public class DateTimeExtensions
Public Class DateTimeExtensions
Methods
ToClientTime(value)
Converts the DateTime value to the time zone of the client's browser.
| Parameter | Type | Description |
|---|---|---|
| value | DateTime | 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 | DateTime | The DateTime to adjust to the client's time zone. |
| timezoneOffset | Int32 | The time-zone offset in minutes. |
Returns: DateTime.