dtday

Purpose

Creates a matrix in DT scalar format containing only the year, month and day. Time of day information is zeroed out.

Format

dt = dtday(year, month, day)
Parameters:
  • year (NxK matrix) – Years

  • month (NxK matrix) – Months. \(1 \leq month \leq 12\).

  • day (matrix) – Days. \(1 \leq day \leq 31\).

Returns:

dt (NxK matrix) – DT scalar format dates.

Examples

year = 2007;
month = 9;
day = 13;

dtday(year, month, day);

After the above code:

20070913000000

Remarks

This amounts to 00:00:00 or midnight on the given day. The arguments must be ExE conformable.

Source

time.src

See also

Functions dttime(), dtdate(), utctodt(), dttostr()