IRIS Toolbox Reference Manual

dat2char

Convert dates to character array

Syntax

C = dat2char(Dat,...)

Input arguments

Output arguments

Options

See help on dat2str for options available.

Description

Example

We create a quarterly date using the function qq; this function returns an IRIS serial date number. We then use dat2char to print a humna-readable text representation of that date.

d = qq(2015,3)
d =
   8.0620e+03
dat2char(d)
ans =
2015Q3