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

Parameters

dirtyDate
  • the date to format
dirtyBaseDate
  • the date to compare with
dirtyOptions