Skip to content

toISOString

La fonction toISOString() transforme un TheDate en chaîne ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ).

Exemple interactif

Syntaxe

typescript
function toISOString<
	GenericInput extends TheDate
	>(
	input: GenericInput
): string

Paramètres

  • input : La date à convertir.

Valeur de retour

Une chaîne ISO 8601 représentant la date.

Voir aussi

Sources

Diffusé sous licence MIT.