Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/date_fns/toDate/index.js>default

date-fns Deno package
Very Popular
Go to Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.0.0-alpha.8/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 '+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

Parameters

argument
  • the value to convert
dirtyOptions