<s.c.r.i.p.t.>
function DatePrint(days)
{
var today = new Date();
var theDate = new Date(today.valueOf()-days*86400000);
var day = theDate.getDate();
getmonth = theDate.getMonth();
var monthArray = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
month = monthArray[getmonth];
var ds = '';
if (day < 10)
ds = '0';
document.write(month + " " + ds + day);
}
</s.c.r.i.p.t.>
<s.c.r.i.p.t.>DatePrint(1)</s.c.r.i.p.t.>
-----------------
(1) - means yesterday, (7) - a week ago and so on.
__________________
Buy or sell traffic Here or Here
|