free flash templates
free flash templates menu free css & photoshop templates menu free flash animation

Go Back   free flash templates forum > Free flash templates
Register Today's Posts Search

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-31-2009, 04:26 AM
kamalmisc
Guest
 
Posts: n/a
Default Inserting Date into the web page

Hi,
Does anyone know how to insert a date into the web page instead of hard coding it each week?

http://www.steppingstonemontessori.org

kamal
  #2  
Old 03-31-2009, 08:37 AM
freenicetemplates freenicetemplates is offline
Administrator
 
Join Date: Mar 2009
Posts: 507
Default

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>
__________________
We are always pleased to read you in our guestbook
  #3  
Old 03-31-2009, 01:16 PM
kamalmisc
Guest
 
Posts: n/a
Default

Thank you for your help.
kamal
  #4  
Old 04-02-2009, 01: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
  #5  
Old 04-02-2009, 03:29 PM
freenicetemplates freenicetemplates is offline
Administrator
 
Join Date: Mar 2009
Posts: 507
Default

I think you will find what you're look for here :
http://www.netmechanic.com/news/vol5...cript_no12.htm
__________________
We are always pleased to read you in our guestbook
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:03 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.