Blog lập trình

Chia sẻ mọi kiến thức về lập trình

Cộng trừ ngày tháng năm

   // ngay het han trai phieu

  ChangeDate(date) {// ham thay doi ngay

    var dt = new Date(date);

    dt.setDate(dt.getDate() + 90);

    dt.setMonth(dt.getMonth() + 1);

    //var cc = dt.getDate() + '/' + (dt.getMonth() + 1) + '/' + dt.getFullYear() + " 0:0:0";

    //console.log(cc);

    this.Item.DateEnd = dt;

  }

Share on Google Plus

About Blog chia sẻ kiến thức lập trình

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

0 nhận xét:

Đăng nhận xét