lightFormat
import { lightFormat } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd')
//=> '2014-02-11'
function lightFormat<DateType extends Date>(date: DateType | number | string, formatStr: string): string;