View Single Post
  #4  
Old 04-02-2009, 12:29 AM
kamalmisc
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by freenicetemplates View Post
Hi,
You can add date in your webpage javascript this way:

<script type="text/javascript">
var dat = new Date()
document.write(dat .getDate())
document.write(".")
document.write(dat .getMonth() + 1)
document.write(".")
document.write(dat.getFullYear())
</script>
I wrote this code into the webpage where I want the date to appears. It returns the date in this format "1.4.2009 " I want the date to be in this format "April 1, 2009".
How can I get the month to be in alphabetical format rather than numerical format?

Kamal