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.

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day! You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!

This page is using the new English version of dCode, please make comments !

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.

Answers to Questions

How to calculate the nth day of the year?

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

The 1st January is the day 1, the 31th december is the 365th (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

Ask a new question

Source code

dCode retains ownership of the source code of the script Nth day of the year. Except explicit open source licence (free / freeware), any algorithm, applet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any snippet or function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in PHP (or Java, C#, Python, Javascript, etc.) which dCode owns rights can be transferred after sales quote. So if you need to download the Nth day of the year script for offline use, for you, your company or association, see you on contact page !

dCode uses cookies to customize the site content, analyze user behavior and adapt dCode to your use. Some data is stored and collected for advertising purposes and may be shared with our partners. OK