Tool to compute the day number in a year. Calculation of the nth day of the year or know the number of days since the first January in the Gregorian Calendar (N-th day).

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day! A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Calculation of the date for the nth day of the year

Tool to compute the day number in a year. Calculation of the nth day of the year or know the number of days since the first January in the Gregorian Calendar (N-th day).

Answers to Questions

How to calculate the nth day of the year?

The day of year calculator uses the number of days between the date of 1st january and the desired day. It takes into account the number of days in each month and can be set for a leap year.

Example: The 1st January 2019 is the day 1

Example: The 31th december is the 365th (for non-leap year)

50th day

19/02

100th day

10/04

123th day

03/05

150th day

30/05

183th day (365/2)

02/07

200th day

19/07

250th day

07/09

256th day

13/09

300th day

27/10

350th day

16/12

What is the middle day of the year?

A year has 365 or 366 days, the middle day of a year is the 183rd or July 2nd.

How to convert an nth day to date in Excel?

Type the formula =DATE(YEAR(TODAY()),1,A1) by replacing N with the day number to obtain the corresponding date in the current year. Replace YEAR(TODAY()) with any year value if needed.

Source code

dCode retains ownership of the source code of the script Nth Day of the Year online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online Nth Day of the Year script for offline use on PC, iPhone or Android, ask for price quote on contact page !