NextIndexPrevious

Programs in JavaScript

16. Displaying Date only.

<html>
<head>
</head>

<body>
<script>
var d = new Date();
	document.write(d.toLocaleDateString());
</script>
</body>
</html>

Output :

Untitled Document



Father of PHP

Rasmus Lerdorf

Rasmus Lerdorf

Born: November 22, 1968, Greenland
Google+