Moment.js moment().startOf() Method
The moment().startOf() method is used to mutate the Moment so that it is set to the start 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().startOf( String ); Parameters: This method accepts a single paramete