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

Examples

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

Parameters

dirtyDate
  • the original date
dirtyFormatStr
  • the string of tokens