| Financial Toolbox | Search  Help Desk |
| days365 | Examples See Also |
Days between dates based on 365-day year.
Syntax
nd = days365(d1, d2)
Description
nd = days365(d1, d2)
returns the number of days between dates d1 and d2 based on a 365-day year. If d2 is earlier than d1, nd is negative. Enter dates as serial date numbers or date strings.
Either input argument can contain multiple values, but if so, the other input must contain the same number of values or a single value that applies to all. For example, if d1 is an N-row character array of date strings, then d2 must be an N-row character array of date strings or a single date. nd is then an N-by-1 vector of numbers.
Examples
nd = days365('15-jan-1997', '15-mar-1997')nd =59d2 = ['15-mar-1997'; '15-apr-1997'; '15-jun-1997'];nd = days365('15-jan-1997', d2)nd =5990151
See Also
days360, daysact, daysdif, wrkdydif, yearfrac