Moment.js moment().get() Method
The moment().get() method is used to get the given unit of time from the Moment object as a String. The unit can be specified in all the recognized variations of the unit including its plural and short forms. It can be used to return the value of a year, month, date, hour, minute, and millisecond. S