DateTimeExtensions
System.DateTimeExtensions
Namespace: System
Assembly: Wisej.Framework (2.2.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. When the timezone of the server doesn't match the time zone of the client, you should convert to the client's timezone when using Now.
Returns: DateTime.
ToClientTime(value, timezoneOffset)

Converts the DateTime value to the time zone of the client's browser. When the timezone of the server doesn't match the time zone of the client, you should convert to the client's timezone when using Now.
Returns: DateTime.
Last updated
Was this helpful?