Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
function dayOfYearUtc
import { dayOfYearUtc } from "https://deno.land/std@0.224.0/datetime/day_of_year.ts";

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

Examples

Example 1

import { dayOfYearUtc } from "https://deno.land/std@0.224.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.