datehour

Syntax

datehour(X)

Arguments

X is a temporal scalar/vector that contains information about dates.

Details

Convert X into DATEHOUR data type.

Since version 2.00.12, converting MONTH into DATEHOUR is allowed.

Examples

datehour(2012.06.13 13:30:10);
// output: 2012.06.13T13

datehour([2012.06.15 15:32:10.158,2012.06.15 17:30:10.008]);
// output: [2012.06.15T15,2012.06.15T17]

datehour(2012.01M)
// output: 2012.01.01T00