Skip to main content
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.8.0/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