Nodejs Date After isAfterDate(d)

Here you can find the source of isAfterDate(d)

Method Source Code

Date.prototype.isAfterDate = function (d) {
    var tDate = new Date(this.getFullYear(), this.getMonth(), this.getDate());
    var pDate = new Date(d.getFullYear(), d.getMonth(), d.getDate());
    return tDate > pDate
}

Related

  1. after(other)
    Date.prototype.after = function(other) {
        return this.compareTo(other) > 0;