| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Financial Toolbox |
| Contents | Index |
| Learn more about Financial Toolbox |
NumDays = days365(StartDate, EndDate)
StartDate | Enter as serial date numbers or date strings. |
EndDate | Enter as serial date numbers or date strings. |
Either input can contain multiple values, but if so, the other must contain the same number of values or a single value that applies to all. For example, if StartDate is an n-row character array of date strings, then EndDate must be an n-by-1 vector of integers or a single integer. NumDays is then an n-by-1 vector of date numbers.
NumDays = days365(StartDate, EndDate) returns the number of days between dates StartDate and EndDate based on a 365-day year. (All months contain their actual number of days. February always contains 28 days.) If EndDate is earlier than StartDate, NumDays is negative. Enter dates as serial date numbers or date strings.
NumDays = days365('15-jan-2000', '15-mar-2000')
NumDays =
59
MoreDays = ['15-mar-2000'; '15-apr-2000'; '15-jun-2000'];
NumDays = days365('15-jan-2000', MoreDays)
NumDays =
59
90
151
days360, daysact, daysdif, wrkdydif, yearfrac
![]() | days360psa | daysact | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |