Home > Web Front-end > JS Tutorial > body text

Use the toString() method to return the time as a string

PHP中文网
Release: 2017-05-25 14:50:05
Original
1649 people have browsed it

This method returns a string representing the specified date object.
Syntax

Date.toString()
Copy after login

The following are the details of the parameters:

  • NA

Return value:

Returns a string representing the specified date object
Example:

JavaScript toString Method
Copy after login

Related recommendations】

1. Detailed explanation of valueOf method examples in Java

2. The difference between valueOf and toString, (String) in Java

3. Usage of tostring() and valueof() and the difference between the two

4. In-depth understanding of valueOf function and toString method

5. Introduction to object conversion functions toString() and valueOf()

6. The difference between valueOf, parseInt and toString in Java

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template