Method 2:Using String Constructor
The String constructor property in JavaScript is used to return the string constructor function for the object.
Example: In this example, we will convert the date object to a string using the String constructor.
// New date using date Constructor
let d = new Date()
// Convert to string
let dateString = String(d);
// Print output
console.log(dateString)
Output
Wed Sep 20 2023 08:42:52 GMT+0000 (Coordinated Universal Time)
JavaScript Program to Convert Date to String
In this article, we will see how to convert a JavaScript Date to a string using JavaScript. We have a few methods to convert JavaScript Date to string which are described below.