Nodejs Utililty Methods Minute Format

List of utility methods to do Minute Format

Description

The list of methods to do Minute Format are organized into topic(s).

Method

getFullMinutes()
Date.prototype.getFullMinutes = function () {
  return ('0' + this.getMinutes()).slice(-2);
};
getFullMinutes()
Date.prototype.getFullMinutes = function () {  
  if (this.getMinutes() < 10) {
    return '0' + this.getMinutes();
  return this.getMinutes();
};