This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > July 2005 > Need help on inserting date/time





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Need help on inserting date/time
NFAITH

2005-07-28, 7:22 pm

I'm still not the expert in creating websites using DW. Can any1 help me how do
i insert date/time into the webpage so that when ever visitors open the page it
displays current date and time as well. I tried using the script language tag
but it when ever i preview it only displays the day not even date or year or
even time. Did i miss sumthing along the line. Much appreciate ppl.

Cheers

Trevis

2005-07-28, 7:22 pm

You can't achieve this with DW, you'll need PHP or similar. In case you want
to give it a shot with php, your page has to be saved with .php extension
(and run on a server running PHP) then you can insert this line of code
where you'd like your date to appear:

<? echo date("d-m-Y"); ?>

Cheers,

Trevis

"NFAITH" <webforumsuser@macromedia.com> wrote in message
news:dcb07f$4ip$1@forums.macromedia.com...
> I'm still not the expert in creating websites using DW. Can any1 help me

how do
> i insert date/time into the webpage so that when ever visitors open the

page it
> displays current date and time as well. I tried using the script language

tag
> but it when ever i preview it only displays the day not even date or year

or
> even time. Did i miss sumthing along the line. Much appreciate ppl.
>
> Cheers
>



Paul Whitham TMM

2005-07-28, 11:43 pm

If this is a static page then you need to use javascript. If this is a
dynamic page then you can easily get the server time.

For the former have a look at www.javascriptsource.com as there are quite a
few scripts there that you can cut and paste.

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Team Macromedia Volunteer for Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"NFAITH" <webforumsuser@macromedia.com> wrote in message
news:dcb07f$4ip$1@forums.macromedia.com...
> I'm still not the expert in creating websites using DW. Can any1 help me
> how do
> i insert date/time into the webpage so that when ever visitors open the
> page it
> displays current date and time as well. I tried using the script language
> tag
> but it when ever i preview it only displays the day not even date or year
> or
> even time. Did i miss sumthing along the line. Much appreciate ppl.
>
> Cheers
>



NFAITH

2005-07-29, 7:28 am

Oki doki i'll try n do tat, Thanks Paul
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews