Web Designer? Design and market your own professional website with easy-to-use tools.
Compare, review and buy thousands of Laptops , software products at CheckCost.co.uk
Your Text Link Here! and your text description here!
The Date() method returns today's date and time.
The syntax for the Date() method is:
Date()
The javascript example below will show you how to display the current date and time using the Date() method.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>WebDevelopmentTutorials.com</title>
</head>
<body>
<script type="text/javascript" language="javascript">
document.write(Date());
</script>
</body>
</html>
The javascript above outputs: