怎么让下面这段代码显示正确的日期
如下:这段代码的日期的月份会少1,该怎么调整
<script type="text/javascript"> var mydate=new Date(); var weekday=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]; document.write("今天是:" +mydate.getFullYear()+"年"+mydate.getMonth()+"月"+ mydate.getHours()+"日"+ weekday[mydate.getDay()] ); </script>