Moment.js moment().endOf() Method
The moment().endOf() method is used to mutate the Moment so that it is set to the end of the given unit of time. The available units of time can be the year, month, quarter, week, day, hour, minute and second. Syntax: moment().endOf( String ); Parameters: This method accepts a single parameter as me