DAY(serial_number)

Returns the day as an integer given a date serial number.

serial_numberThe date that contains the day you want to find.

Remarks

* This function returns a number between 1 and 31.
* The "serial_number" can be a date, value, cell reference or a text string in a date format.
* If "serial_number" < 0, then #NUM! is returned.
* If "serial_number" is not a valid date, then #VALUE! is returned.
* The date format can be any of those found on the "Format Cells" dialog box.
* You can use the DATEVALUE function to return the date serial number given a date in text format.
* You can use the DATE function to return the date serial number given a year, month, day.
* You can use the MONTH function to return the month as an integer given a date serial number.
* You can use the NOW function to return the serial number of the current system date and time.
* You can use the TODAY function to return the serial number of the current system date.
* You can use the YEAR function to return the year as an integer given a date serial number.
* For the Microsoft documentation refer to support.office.com

 AB
1=TODAY() = Monday, December 02, 2019 
2=NOW() = Monday, December 02, 2019, 07:03 
3=DAY("01 July 2020") = 101 Jul 2020
4=DAY("07 July 2020") = 7=NOW() = 02/12/2019
5=DAY("15 July 2020") = 15=NOW() = 43801
6=DAY(B3) = 1 
7=DAY(B4) = 2 
8=DAY(38094) = 17 
9=DAY(DATE(1977,7,1)) = 1 
10=DAY(DATEVALUE("01 Jul 2003")) = 1 
11=DAY(0) = 0 
12=DAY("07 July 2008")-DAY("1/7/2008") = 6 
13=DAY(-10) = #NUM! 
14=DAY("some text") = #VALUE! 

1 - What is the current system date. This cell has been formatted with the number format "dddd, mmmm dd, yyyy".
2 - What is the current system date and time. This cell has been formatted with the number format "dddd, mmmm dd, yyyy, hh:mm".

© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited Top