New to Kendo UI for AngularStart a free 30-day trial

createDate

A function which returns a new Date instance.

ts
createDate(2016, 0, 15); // 2016-01-15 00:00:00
createDate(2016, 0, 15, 22, 22, 20); // 2016-01-15 22:22:20

Parameters

year number

The year value.

month number

The month value.

day number

The day value.

hours number

The hours value.

minutes number

The minutes value.

seconds number

The seconds value.

milliseconds number

milliseconds value.

Returns

Date The date instance.

Not finding the help you need?
Contact Support