How to Use DAY, DAYS and DAYS360 Function in Excel + Tips (Video in Khmer)
Learn how to use DAY, DAYS, and DAYS360 functions in Excel step-by-step to extract day numbers and calculate day differences between two dates with simple examples and video tutorial.
Hello everyone! Today i will show you how to use DAY, DAYS, and DAYS360 functions in Microsoft Excel step by step. Very easy and useful formulas for working with date calculations, counting days between dates, and accounting schedule!
1. What is DAY, DAYS, and DAYS360 Function in Excel?
- DAY: Extract the day number (from
1to31) from a specific date. - DAYS: Calculate exact number of real calendar days between
end_dateandstart_date. - DAYS360: Calculate number of days between two dates based on a 360-day year (12 months x 30 days), commonly used in banking and financial accounting.
Think of them like date calculators:
=DAY("2026-09-21")➔ returns21(day number).=DAYS(B2, A2)➔ returns exact real calendar days (e.g.181days).=DAYS360(A2, B2)➔ returns financial accounting days (e.g.180days).
2. 🛠️ Formula Syntax & Parameters
=DAY(serial_number)
=DAYS(end_date, start_date)
=DAYS360(start_date, end_date, [method])
serial_number: Required forDAY. The date from which to extract day number.end_date&start_date: Required forDAYSandDAYS360.- ⚠️ Notice argument order:
DAYStakes(end_date, start_date), butDAYS360takes(start_date, end_date)!
- ⚠️ Notice argument order:
[method]: Optional forDAYS360.FALSE(or omit) = US (NASD) method (30/360).TRUE= European method (30/360).
3. 📋 Practical Examples
Example Data Table (A2:B4)
| Row | Column A (Start Date) | Column B (End Date) |
|---|---|---|
| 2 | 2026-01-01 | 2026-07-01 |
| 3 | 2026-02-01 | 2026-03-01 |
| 4 | 2026-05-15 | 2026-09-21 |
Example 1: Extract Day of Month with DAY Function
To extract the day number from date in cell B4 (2026-09-21):
=DAY(B4)
👉 Result: Returns 21!
Example 2: Count Calendar Days Between Dates with DAYS Function
To calculate real calendar days between 2026-01-01 and 2026-07-01:
=DAYS(B2, A2)
👉 Result: Returns 181 days!
Example 3: Count Financial Accounting Days with DAYS360 Function
In 30/360 accounting method, 6 months (Jan 1 to Jul 1) is calculated as exactly 6 * 30 = 180 days:
=DAYS360(A2, B2)
👉 Result: Returns 180 days!
💡 Quick Tips for DAY, DAYS and DAYS360 Functions
- Watch Out for Argument Order in
DAYSvsDAYS360!DAYS(end_date, start_date)put end date first!DAYS360(start_date, end_date)put start date first!- If you put start date first in
DAYS, it will return a negative number (e.g.,-181).
DAYSCounts Leap Years Automatically:DAYScounts actual calendar days including February 29 on leap years, whileDAYS360treats every month as 30 days.- Calculate Days Remaining Until Deadline:
=DAYS(deadline_date, TODAY())shows how many days left until due date! - Fix
#VALUE!Error: Make sure both date arguments are valid Excel date values, not text strings.
📚 Related Resources & Tutorials
Related Tutorials
Opens in new tab ↗How to Use the WEEKNUM Function in Excel (video in khmer)
Learn how to get the week number of the year from a date in Excel using WEEKNUM formula step by step with simple examples.
How to Use the WEEKDAY Function in Excel (video in khmer)
Learn how to get the day number from a date in Excel using WEEKDAY formula step by step with easy examples.
How to Use DAY, MONTH, and YEAR Functions in Excel (Video in Khmer)
Learn how to extract day, month, and year from any date in Excel step-by-step with simple examples.