Javascript Date getHalfYear()

Description

Javascript Date getHalfYear()


Date.prototype.getHalfYear = function () {
    if (!this.getMonth) return null;
    var m = this.getMonth();
    if (m < 6) return 0;
    return 1;//from w  w  w  .ja v  a 2  s  .  com
}



PreviousNext

Related