[javascript] fhh

Viewer

  1.  
  2. var today = new Date();
  3.  
  4. console.log(today.getDay());
  5.  
  6.         function GetDays(){
  7.                 var dropdt = new Date(document.getElementById("drop_date").value);
  8.                 var pickdt = new Date(document.getElementById("pick_date").value);
  9.                 return parseInt((dropdt - pickdt) / (24 * 3600 * 1000));
  10.         }
  11.  
  12.         function cal(){
  13.         if(document.getElementById("drop_date")){
  14.             document.getElementById("numdays2").value=GetDays();
  15.         }  
  16.     }

Editor

You can edit this paste and save as new:


File Description
  • fhh
  • Paste Code
  • 01 Jul-2022
  • 505 Bytes
You can Share it: