Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.0.0-alpha.32/lightFormat/index.js";

Examples

var result = format(new Date(2014, 1, 11), 'yyyy-MM-dd') //=> '1987-02-11'

Parameters

dirtyDate
  • the original date
dirtyFormatStr
  • the string of tokens