You need to call the toLocaleDateString
method by adding parentheses after it, like this:
var start = match.startAt
console.log(start);
var startTime = new Date(start);
var t = startTime.toLocaleDateString();
The t
variable should be a reference to the toLocaleDateString
function, which makes the right approach to do it. However, you need…
Top comments (0)