Hi,
so you will need to find out that what day of that particular year is in November.
for example in Firefox you can get this by;

var y = today.getFullYear();
$first_day = new Date(y,10,1);...