toNative
The toNative() function converts date/time values to their native JavaScript representation.
Interactive example
Syntax
typescript
function toNative<
GenericInput extends TheDate | SerializedTheDate
>(
input: GenericInput
): Date
function toNative<
GenericInput extends TheTime | SerializedTheTime
>(
input: GenericInput
): numberParameters
input: A value amongTheDate,SerializedTheDate,TheTime, orSerializedTheTime.
Return value
Datefor date inputs.numberfor time inputs.
