Adding "Get It by [Future Date]" to the page dynamically?

Hi @chakir_zarioh,

pls use this custom code instead:

<script>
var d = new Date();
  var dplus = new Date();
  dplus.setDate(d.getDate()+5);

  const options = { weekday: 'short', month: 'short', day: 'numeric' };

    let ships = document.querySelectorAll(".today");
ships.forEach(d => {
  d.innerHTML = '"Order and get it By ' + dplus.toLocaleDateString('en-US', options) + generateTh(dplus.getDate()) + '"';
})
function generateTh(d){
  let ar = String(d).split(''); 
  if (ar[ar.length-1] == 1 && d != 11) return 'st';
  else if(ar[ar.length-1] == 2 && d != 12 && d != 13) return 'nd';
   else if(ar[ar.length-1] == 3) return 'rd';
  return 'th';
}
</script>

PS: Change the number 5 to the right shipping days.