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'
// 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'