格式如:October 2009 很簡單的隻要得到年月就行了,其它的不要,謝謝

解决方案 »

  1.   

    <script language="JavaScript">
    var enabled = 0; 
    today = new Date();
    var date;
    var month;
    if(today.getMonth()==0) month = "January"
    if(today.getMonth()==1) month = "February"
    if(today.getMonth()==2) month = "March"
    if(today.getMonth()==3) month = "April"
    if(today.getMonth()==4) month = "May"
    if(today.getMonth()==5) month = "June"
    if(today.getMonth()==6) month = "July"
    if(today.getMonth()==7) month = "August"
    if(today.getMonth()==8) month = "September"
    if(today.getMonth()==9) month = "October"
    if(today.getMonth()==10) month = "November"
    if(today.getMonth()==11) month = "December"date =  month + ". " +(today.getYear())+"";
    document.write(date);
    </script>