Web Hosting Talk







View Full Version : Time/Date in DWCS4


dlewis61
08-17-2009, 05:08 PM
Hi Folks,

I found the command to put the time/date on my webpage via DW CS4. However, it is NOT dynamic. IE, it will only update when I update my webpage in DW. This is not good. I want it to constantly have the correct time and date LIVE.

Any thoughts?
dlewis

Jay August
08-17-2009, 07:42 PM
Does your server support php? if so, add this to your page:
<?php print date('d-m-y H:i'); ?>

You can alter the code between the ' ' however it might suit you. There's an instruction of what to put there on the php.net website: http://nl2.php.net/manual/en/function.date.php

DesignBear
08-17-2009, 08:01 PM
Yeah as above is a simple way of showing it, or of course look along the lines of an SSI or Javascript to show the date and time. Dreamweaver only inserts the current date and time as this is to display when the page was revised :P

dotflyer
08-21-2009, 05:06 PM
or you can use flash for this.