TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Current Date Scipt

Page: 1 Reply
Jul 19th 2002#59736 Report
Member since: Jun 13th 2002
Posts: 21
I can't seem to figure out to get the date script to work. On a site I'm creating I want to have the current date appear for whenever the user opens the page. Just the date no time. However, I did this through Dreamweaver using the insert data command, but it's not changing.

I hope you understand what I'm trying to do. It's just like when sites have the current time and date so people know what time and date it is. I want only the date.

Is their a JavaScript to use for this? Does anyone know how to do this?

~R~
Reply with Quote Reply
Jul 19th 2002#59782 Report
Member since: Jun 30th 2001
Posts: 447
Reply with Quote Reply
Jul 19th 2002#59786 Report
Member since: Apr 1st 2002
Posts: 1487
yay my first javascript program for someone :D

here is what i used to come up with the date only. if anyone has a more simple script, please let him know.


[EDIT]
damn it, just noticed it gives the wrong date. i'll fix and repost
Reply with Quote Reply
Jul 19th 2002#59789 Report
Member since: Apr 1st 2002
Posts: 1487
ok here it is, works 100% now. :D

[PHP]

[/PHP]
Reply with Quote Reply
Jul 21st 2002#60060 Report
Member since: Mar 24th 2002
Posts: 3114
...only that the document.write() will write it..and only it.

I´d use a
divName.innerHTML=month_value + ...blahblah instead, having the div named..u know?
Reply with Quote Reply
Jul 21st 2002#60064 Report
Member since: Apr 1st 2002
Posts: 1487
ahhh, i see. well, atleast i got the other parts right
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum