LostShadow
06-29-2009, 07:03 PM
This is what I got:
var m = new Month; m.setMonth(m.getMonth() - (m.getDay()));
var monthnow = new Date(); monthnow.setMonth(0); monthnow.getMonth()
document.write("Week of "+ m.getMonth());
document.write(", 2009.");
Trying to return the month of the month of last Sunday. So if today is Sunday, will return today's month.
:/
Thanks.
var m = new Month; m.setMonth(m.getMonth() - (m.getDay()));
var monthnow = new Date(); monthnow.setMonth(0); monthnow.getMonth()
document.write("Week of "+ m.getMonth());
document.write(", 2009.");
Trying to return the month of the month of last Sunday. So if today is Sunday, will return today's month.
:/
Thanks.