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

x/deno/std/datetime/mod.ts

A modern runtime for JavaScript and TypeScript.
Go to Latest
import * as deno from "https://deno.land/x/deno@v0.22.0/std/datetime/mod.ts";

Functions

Get number of current day in year

Get number of the day in the year

Parse date from string using format string

Parse date & time from string using format string

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.