Nodejs Date GMT UTC Get getUTCFullDate()

Here you can find the source of getUTCFullDate()

Method Source Code

Date.prototype.getUTCFullDate = function() {
  return this.getUTCFullYear() + '-' + (this.getUTCMonth() + 1) + '-' + this.getUTCDate();
};

Related

  1. utc()
    Date.prototype.utc = function(){
      return new Date();
    };
    
  2. utc(func)
    Date.prototype.utc = function(func) {
        "use strict";
        return new Date(this.getUTCFullYear(), this.getUTCMonth(), this.getUTCDate(),  this.getUTCHours(), this.getUTCMinutes(), this.getUTCSeconds());
    };
    
  3. utcZero()
    Date.prototype.utcZero = function(){
      return new Date(this.getTime() + this.getTimezoneOffset()*60*1000);
    };
    
  4. getTimeUTC()
    Date.prototype.getTimeUTC = function () {
        return this.getTime() + this.getTimezoneOffset() * 60 * 1000;
    };
    
  5. getUtcDateObject()
    Date.prototype.getUtcDateObject = function () {
        return new Date(this.toUTCString());