Skip to main content
Module

std/datetime/mod.ts>dayOfYearUtc

Deno standard library
Go to Latest
function dayOfYearUtc
import { dayOfYearUtc } from "https://deno.land/std@0.221.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.221.0/datetime/day_of_year.ts";

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

Parameters

date: Date

Date to get the day of the year of.

Returns

number

Number of the day in the year in UTC time.