Something Like that:
Date increment in javascript
add this JS code.
JS
function incraseDate(date){ var cDay = date.split('/')[0]; var cMonth = date.split('/')[1]; var cYear = date.split('/')[2]; var newDate = parseInt(cDay) + 1 + ',' + cMonth + ',' + cYear; return newDate.split(',').join('/'); } document.write(incraseDate('26/3/2018'))
[codepen_embed height=”265″ theme_id=”0″ slug_hash=”oqGQxN” default_tab=”js,result” user=”pradeepanvi”]See the Pen Date increment in javascript by Pradeep Kumar (@pradeepanvi) on CodePen.[/codepen_embed]
You can check console.