Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

parseISO

import { parseISO } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Convert string '2014-02-11T11:30:30' to date:
const result = parseISO('2014-02-11T11:30:30')
//=> Tue Feb 11 2014 11:30:30
@example
// Convert string '+02014101' to date,
// if the additional number of digits in the extended year format is 1:
const result = parseISO('+02014101', { additionalDigits: 1 })
//=> Fri Apr 11 2014 00:00:00
function parseISO(argument: string, options?: ParseISOOptions): Date;
§
parseISO(argument: string, options?: ParseISOOptions): Date
[src]

§Parameters

§
argument: string
[src]
  • The value to convert
§
options?: ParseISOOptions optional
[src]
  • An object with options

§Return Type

§
Date
[src]

The parsed date in the local time zone