Advertisement
Guest User

Voucher Validity

a guest
Aug 21st, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. for (let i = 0; i< voucherList.length; i++) {
  2.  
  3. const abc = (voucherList[i].Voucher.VoucherValidity);
  4. console.log(abc)
  5. const total = new Date(voucherList[i].PurchaseAt);
  6. const ab = (total.getDate() + abc );
  7. total.setDate(ab);
  8.  
  9.  
  10. // total.setDate(voucherList[i].PurchaseAt.getDate() + abc);
  11. console.log(total);
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement