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

x/date_fns/index.js>formatRFC7231

date-fns Deno package
Go to Latest
function formatRFC7231
import { formatRFC7231 } from "https://deno.land/x/date_fns@v2.12.0/index.js";

Examples

// Represent 18 September 2019 in RFC 7231 format: const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52)) //=> 'Wed, 18 Sep 2019 19:00:52 GMT'

Parameters

dirtyDate
  • the original date