Javascript Date utc2local()

Description

Javascript Date utc2local()


Date.prototype.utc2local = function()
{
    this.setTime(//from  w w  w . j  a va 2  s  .  c  o m
        this.getTime()-(this.getTimezoneOffset()*60*1000)
    );
}



PreviousNext

Related