I just want to display the default format to like this yyyy/mm/dd hh:mm:ss
rather than Wed Mar 04 2020 18:18:21 GMT+0530 (India Standard Time)
as default format.
<!DOCTYPE html>
<html>
<body>
<h2>Function to diplay time</h2>
<button type="button"
onclick="document.getElementById('demo').innerHTML = Date()">
Click me</button>
<p id="demo"></p>
</body>
</html>