JavaScript toDateString() 方法
定義和用法
toDateString() 方法可把 Date 對(duì)象的日期部分轉(zhuǎn)換為字符串,并返回結(jié)果。
語法
dateObject.toDateString()
返回值
dateObject 的日期部分的字符串表示,由實(shí)現(xiàn)決定,使用本地時(shí)間表示。
toDateString() 方法可把 Date 對(duì)象的日期部分轉(zhuǎn)換為字符串,并返回結(jié)果。
dateObject.toDateString()
dateObject 的日期部分的字符串表示,由實(shí)現(xiàn)決定,使用本地時(shí)間表示。