build/ical.js
function toJSDate() {
      if (this.zone == ICAL.Timezone.localTimezone) {
        if (this.isDate) {
          return new Date(this.year, this.month - 1, this.day);
        } else {
          return new Date(this.year, this.month - 1, this.day,
                          this.hour, this.minute, this.second, 0);
        }
      } else {
        return new Date(this.toUnixTime() * 1000);
      }
    }
function toJSDate() {
      if (this.zone == ICAL.Timezone.localTimezone) {
        if (this.isDate) {
          return new Date(this.year, this.month - 1, this.day);
        } else {
          return new Date(this.year, this.month - 1, this.day,
                          this.hour, this.minute, this.second, 0);
        }
      } else {
        return new Date(this.toUnixTime() * 1000);
      }
    }
function toJSDate ( ) { if ( this . zone == ICAL . Timezone . localTimezone ) { if ( this . isDate ) { return new Date ( this . year , this . month - 1 , this . day ) ; } else { return new Date ( this . year , this . month - 1 , this . day , this . hour , this . minute , this . second , 0 ) ; } } else { return new Date ( this . toUnixTime ( ) * 1000 ) ; } }
Converts the current instance to a Javascript date
@return {Date}
Converts the current instance to a Javascript date