In the example, the formula is:

B5 contains a date value for January 5, 2016.

The DAY function returns the number 5 representing the day component of the date.

you might use the DAY function to extract a day number from a date into a cell.

Excel formula: Get day name from date

Excel formula: Get month from date

Excel formula: Get year from date

Excel DAY function