import { toDate } from "https://deno.land/x/date_fns@v2.0.0-beta.2/index.js";
Examples
// Clone the date:
const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
//=> Tue Feb 11 2014 11:30:30
// 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
// Convert the timestamp to date: const result = toDate(1392098430000) //=> Tue Feb 11 2014 11:30:30