I want to display this on a webpage using jQuery…
Friday 12 August 2011
I have a div with an ID of date setup that I would like to print it into.
Jquery so far..
var newDate = new Date();
newDate.setDate(newDate.getDate() + 1);
$('#Date').html((newDate.getMonth() + 1) + '/' + newDate.getDate() + '/' + newDate.getFullYear());
Can someone tell me how to format this correctly?
Working demo – http://jsfiddle.net/ipr101/X9hyZ/