Financial Toolbox
  Go to function:
    Search    Help Desk 
days365    Examples   See Also

Days between dates based on 365-day year.

Syntax

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

See Also

days360, daysact, daysdif, wrkdydif, yearfrac



[ Previous | Help Desk | Next ]