JavaScript toString () method
Definition and Usage
toString () method of the Date object to a string and returns the result.
Note: When theDate object needs to appear as a character string this method is called automatically.
Browser Support
All major browsers support toString () method
grammar
Date.toString()
return value
Type | 描述 |
---|---|
String | 日期和时间作为字符串输出 |
technical details
JavaScript version: | 1.0 |
---|