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

std/datetime/mod.ts>dayOfYearUtc

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function dayOfYearUtc
import { dayOfYearUtc } from "https://deno.land/std@0.195.0/datetime/mod.ts";

Returns the number of the day in the year in UTC time.

Examples

Example 1

import { dayOfYearUtc } from "https://deno.land/std@0.195.0/datetime/mod.ts";

dayOfYearUtc(new Date("2019-03-11T03:24:00.000Z")) // output 70

Returns

number

Number of the day in the year in UTC time