DAY()

Syntax. DAY(serial_number)

Definition. This function extracts the number of a day from a date. The DAY() function returns an integer from 1 through 31.

Arguments

Background. With this function, as with the YEAR() and MONTH() functions, you can extract a valid date and use its components for other calculations. Use the DAY() function to extract the day from a date.

Problems might occur if you enter dates as text. The values returned by the functions YEAR(), MONTH(), and DAY() correspond to the Gregorian calendar.

See Also

For more information about saving dates in Excel, see the section titled The Excel Date System in Chapter 2.

Example. You may want to use the Excel AutoFilter to look at the days in a birthday list. You can extract the day and put this in an auxiliary column. To do this, use the formula

=DAY(date)

Here are some more examples:

See Also

DATE(), HOUR(), MINUTE(), MONTH(), SECOND(), TIME(), WEEKDAY(), YEAR()