I am trying to capture the date and subtract 5 days from it. I thought that JScript would automatically roll back to a previous month automatically. My code does not seem to work, the value comes back as blank. Any ideas on what is wrong with this function?
function showNextWeek(){
dtNextWeek = new Date();
dtNextWeek.setDate( dtNextWeek.getDate()-5 );
alert( dtNextWeek );
}