Javascript code for showing yesterday's date and todays date - Stack Overflow


PHOTO EMBED

Wed Dec 30 2020 09:03:34 GMT+0000 (UTC)

Saved by @ali_alaraby

var d = new Date();
d.setDate(d.getDate() - 1);
content_copyCOPY

https://stackoverflow.com/questions/5495815/javascript-code-for-showing-yesterdays-date-and-todays-date