Skip to content

JSDate structure

C#
public struct JSDate : IJSValue<JSDate>

Public Members

namedescription
JSDate()The default constructor.
JSDate(…)(2 constructors)
static FromDateTime(…)
static FromDateTimeOffset(…)
DateValue { get; }
As<T>()Tries to create a T struct from this instance. It returns null if the T struct cannot be created.
AsUnchecked<T>()Creates a T struct from this instance without checking the enclosed handle type. It must be used only when the handle type is known to be correct.
CastTo<T>()Creates a T struct from this instance. It throws InvalidCastException in case of failure.
Equals(…)Compares two JS values using JS "strict" equality.
override Equals(…)
override GetHashCode()
Is<T>()Checks if the T struct can be created from this instance`.
ToDateTime()
ToDateTimeOffset()
operator ==Compares two JS values using JS "strict" equality.
explicit operatorExplicitly converts a JSValue to a nullable JSDate. (2 operators)
implicit operatorImplicitly converts a JSDate to a JSValue.
operator !=Compares two JS values using JS "strict" equality.

See Also

Released under the MIT license