Skip to content

toNative

The toNative() function converts a TheDate to a JavaScript Date.

Interactive example

Syntax

typescript
function toNative<
	GenericInput extends TheDate
>(
	input: GenericInput
): Date

Parameters

  • input: The immutable TheDate to convert.

Return value

A standard JavaScript Date instance.

See also

Sources

Released under the MIT license.