JavaScript 教程
JavaScript Date 對象
把 Date 對象的日期部分轉換為可讀字符串:
n 結果輸出:
toDateString() 方法可把 Date 對象的日期部分轉換為字符串,并返回結果。
所有主要瀏覽器都支持 toDateString() 方法