IRIS Toolbox Reference Manual

dat2str

Convert IRIS dates to cell array of strings

Syntax

S = dat2str(Dat,...)

Input arguments

Output arguments

Options

Description

There are two types of date strings in IRIS: year-period strings and calendar date strings. The year-period strings can be printed for dates with yearly, half-yearly, quarterly, bimonthly, monthly, weekly, and indeterminate frequencies. The calendar date strings can be printed for dates with weekly and daily frequencies. Date formats for calendar date strings must start with a dollar sign, $.

Year-period date strings

Regular date formats can include any combination of the following fields:

Calendar date strings

Calendar date formats must start with a dollar sign, $, and can include any combination of the following fields:

Escaping control letters

To get the format letters printed literally in the date string, use a percent sign as an escape character: '%Y', '%P', '%F', '%f', '%M', '%m', '%R', '%r', '%Q', '%q', '%D', '%E', '%D'.

Example