import { default } from "https://deno.land/x/date_fns@v2.0.0-alpha.15/toDate/index.js";
Examples
// Convert string '2014-02-11T11:30:30' to date:
var result = toDate('2014-02-11T11:30:30')
//=> Tue Feb 11 2014 11:30:30
// Convert string '2014-02-11T11:30:30' to date: var result = toDate('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 = toDate('+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 = toDate('+02014101', {additionalDigits: 1}) //=> Fri Apr 11 2014 00:00:00