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-beta.2/index.js";

Parameters

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