Moment.js moment().calendar() Function
The moment().calendar() function is used to displays calendar time which is relative to a given referenceDay. By default, it is set to the start of the current day i.e. today. Syntax: moment().calendar(referenceDay, formats); Parameters: This function has two parameters, the first one is the referen