The code is as follows: Copy code The code is as follows: <p><!-- Begin<BR>var today = new Date();<BR>var now = today.getDate();<BR>var year = today.getYear();<BR>if (year < 2000) year = 1900; // Y2K fix<BR>var month = today.getMonth();</P> <P>var monarr = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);</P> <P>// check for leap year<BR>if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) monarr[1] = " 29";</P> <P>// display day left<BR>document.write("This month is left" (monarr[month]-now) "day");<BR>// End --><br>< /script><br></p> </div>