addtodate
Modify date number by field.
Syntax
r = addtodate(d, q, f)
Input argument
d - serial datenum.
q - quantile to add to date
f - 'year', 'month', 'day', 'hour', 'minute', 'second', or 'millisecond.
Output argument
r - date number.
Description
r = addtodate(d, q, f) adds quantity q to the indicated date field f of a scalar serial date number d, returning the updated date number r.
Example
See also
History
Author
Allan CORNET
Last updated