WeCodeAcademy

Dates and Date Formats

Excel stores a date as a serial number: the number of days since 1 January 1900. That makes date arithmetic simple: subtract two dates to get the days between them, add 30 to get a date a month later.

DATE(year, month, day) builds a date; YEAR, MONTH and DAY take one apart. Format the cell as a date (or use TEXT) to read it: dd/mm/yyyy, d mmm yyyy, mmmm. These lessons show the plain serial number unless you use TEXT.

Exampleexcel
Open in editor »
Quick check

What is a date inside Excel?

Your turn: write the code

Show the date 60 days after A1 as dd/mm/yyyy text in B1.

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.