SHARE
TWEET

Voucher Validity

a guest Aug 21st, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top