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

firstMonthOfYear

A function that returns a Date object of the first month in a year.

ts
firstMonthOfYear(new Date(2017, 11, 1)); // 2017-1-1
firstMonthOfYear(new Date(2017, 0, 1)); // 2017-1-1

Parameters

value

Date

Returns

Date

- The first month in a year.
Not finding the help you need?
Contact Support