Date toLocaleString()
Date type's toLocaleString() returns the date and time in a locale format.
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
<script type="text/javascript">
var aDate = new Date(Date.UTC(2000, 0));
document.writeln(aDate);
document.writeln(aDate.toLocaleString());
</script>
</head>
<body>
</body>
</html>