Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (let i = 0; i< voucherList.length; i++) {
- const abc = (voucherList[i].Voucher.VoucherValidity);
- console.log(abc)
- const total = new Date(voucherList[i].PurchaseAt);
- const ab = (total.getDate() + abc );
- total.setDate(ab);
- // total.setDate(voucherList[i].PurchaseAt.getDate() + abc);
- console.log(total);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement