How do I insert today's date

  Woody Ham 14:52 08 Jan 2008
Locked

I maintain a web site using DW8 but I'm having trouble displaying today's date on the template. Has any one got a "fool's" guide or code I can use please?

Many thanks

  Kemistri 15:22 08 Jan 2008
  WrecksCars 07:56 22 Jan 2008

I created this code, saved it as a text file with a JavaScript extension and referenced it in the html code:
document.write("<palign='right'><i>"+Date()+"<\/i></p>")

index code reference:
<div class="date">
<script type="text/javascript" src="/javascripts/date.js"><!--//--></script>
</div>
I put it in a division so I could move it around with an external style sheet.
You can see it here in IE: click here
Unfortunately, you can't view the site with the URL---we don't know why.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Best phone camera 2017

Stunning new film posters by Hattie Stewart, Joe Cruz & more

iPad Pro 10.5in (2017) review

28 astuces pour profiter au mieux de votre iPhone