date

Syntax

date(X)

Arguments

X is an integer or temporal scalar/vector.

Details

Convert X into DATE type.

Examples

date 2012.12.03 01:22:01;
// output
2012.12.03

date(2016.03M);
// output
2016.03.01

date(1);
// output
1970.01.02

Related functions: second, minute, month, hour, year