This release is 14 versions behind 0.225.6 — the latest version of @std/datetime. Jump to latest
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
UNSTABLE: Utilities for dealing with Date objects
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
100%
Published
2 years ago (0.222.1)
Utilities for dealing with Date objects.
import { dayOfYear, format, isLeap, } from "@std/datetime"; const date = new Date("2020-07-10T03:24:00"); dayOfYear(date); // 192 format(date, "dd-MM-yyyy"); // "10-07-2020" isLeap(date); // true
Built and signed on
GitHub Actions
Add Package
deno add jsr:@std/datetime
Import symbol
import * as datetime from "@std/datetime";
Import directly with a jsr specifier
import * as datetime from "jsr:@std/datetime";
Add Package
pnpm i jsr:@std/datetime
pnpm dlx jsr add @std/datetime
Import symbol
import * as datetime from "@std/datetime";
Add Package
yarn add jsr:@std/datetime
yarn dlx jsr add @std/datetime
Import symbol
import * as datetime from "@std/datetime";
Add Package
vlt install jsr:@std/datetime
Import symbol
import * as datetime from "@std/datetime";
Add Package
npx jsr add @std/datetime
Import symbol
import * as datetime from "@std/datetime";
Add Package
bunx jsr add @std/datetime
Import symbol
import * as datetime from "@std/datetime";