Todays Date

[Javascript]

Javascript provides a simple way to display todays date and time (in 24 hour format) with this simple bit of code:

<script language="Javascript" type="text/javascript">
<!--
   document.write (Date());
// -->
</script>

Which produces this on the page:




It's OK but we would probably prefer a script that displays the date in a much more reader-friendly version like the following:

View Code…




Manipulating the date information even further can provide a greeting based upon the time of day at your visitor's location:

View Code…




To see more uses for the date visit the redirects page.