This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.

Smartphone icons created by Freepik - Flaticon

JS setDate()

The setDate() method sets the day of a date object:

const d = new Date();
d.setDate(15);
document.getElementById("demo").innerHTML = d;