Skip to main content
Module

x/date_fns/index.js>toDate

date-fns Deno package
Go to Latest
function toDate
import { toDate } from "https://deno.land/x/date_fns@v2.0.1/index.js";

Examples

// Clone the date: const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) //=> Tue Feb 11 2014 11:30:30

// Convert the timestamp to date: const result = toDate(1392098430000) //=> Tue Feb 11 2014 11:30:30

Parameters

argument
  • the value to convert