Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/datetime/mod.ts>toIMF

Deno standard library
Go to Latest
function toIMF
import { toIMF } from "https://deno.land/std@0.74.0/datetime/mod.ts";

Parse a date to return a IMF formated string date RFC: https://tools.ietf.org/html/rfc7231#section-7.1.1.1 IMF is the time format to use when generating times in HTTP headers. The time being formatted must be in UTC for Format to generate the correct format.

Parameters

date: Date

Date to parse

Returns

string

IMF date formated string