import { parseISO } from "https://deno.land/x/date_fns@v2.0.0-beta.2/index.js";
Examples
// Convert string '2014-02-11T11:30:30' to date:
var result = parseISO('2014-02-11T11:30:30')
//=> Tue Feb 11 2014 11:30:30
// Convert string '2014-02-11T11:30:30' to date: var result = parseISO('2014-02-11T11:30:30') //=> Tue Feb 11 2014 11:30:30
// Convert string '+02014101' to date,
// if the additional number of digits in the extended year format is 1:
var result = parseISO('+02014101', { additionalDigits: 1 })
//=> Fri Apr 11 2014 00:00:00
// Convert string '+02014101' to date, // if the additional number of digits in the extended year format is 1: var result = parseISO('+02014101', { additionalDigits: 1 }) //=> Fri Apr 11 2014 00:00:00