SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
function getYesterdaysDate() { var date = new Date(); date.setDate(date.getDate()-1); return date.getDate() + '/' + (date.getMonth()+1) + '/' + date.getFullYear(); }