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

x/date_fns/index.js>lightFormat

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