| Contents | Index |
NumDays = days360isda(StartDate, EndDate)
StartDate | Row vector, column vector, or scalar value in serial date number or date string format. |
EndDate | Row vector, column vector, or scalar value in serial date number or date string format. |
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.
NumDays = days360isda(StartDate, EndDate) returns a vector or scalar value representing the number of days between StartDate and EndDate based on a 360-day year (that is, all months contain 30 days). If EndDate is earlier than StartDate, NumDays is negative.
Under this convention all months contain 30 days.
Example 1. Use this convention to find the number of days in the month of January.
StartDate = '1-Jan-2002'; EndDate = '1-Feb-2002'; NumDays = days360isda(StartDate, EndDate) NumDays =
30
Example 2. Use this convention to find the number of days in February during a leap year.
StartDate = '1-Feb-2000';
EndDate = '1-Mar-2000';
NumDays = days360isda(StartDate, EndDate)
NumDays =
30
Example 3. Use this convention to find the number of days in February of a non leap year.
StartDate = '1-Feb-2002';
EndDate = '1-Mar-2002';
NumDays = days360isda(StartDate, EndDate)
NumDays =
30
days360 | days360e | days360psa
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-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |