#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 1999
    Posts
    18
    Rep Power
    0
    What is the best way to display the date and time on a website...?

    I am using php for my database queries and don't have a problem displaying the date and time on ".php" pages... however I was wondering if anybody had a suggestion on ".htm" pages...?

    thank you for your time...
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 1999
    Location
    Denmark
    Posts
    83
    Rep Power
    15
    You could use JavaScript...
    Here is a example, you have to modify it I guess:

    <script language="JavaScript1.2">
    <!--
    today = new Date();
    document.write(today);
    -->
    </script>



    ------------------
    regds..
    -ulrik-

  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Location
    London
    Posts
    110
    Rep Power
    0
    or then again why bother with any htm/html extensions just call every page .php3 (or at least the ones you want), write it as a normal htm page (doesnt matter if there is no php on it) and just do a
    <?echo date("d")."&nbsp;".date("M")."&nbsp;".date("y");?> for the date
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Spain
    Posts
    1
    Rep Power
    0
    Wouldn't this be easier?
    <?echo date("d M y");?>

    ------------------
    Clemente Zamora-Ramos
    Web Developer

    [This message has been edited by czamora (edited January 19, 2000).]

Similar Threads

  1. Time field ? Time AND date ?
    By oobiExtant in forum MySQL Help
    Replies: 7
    Last Post: December 28th, 2004, 09:11 AM
  2. mysql date time stamp and UTF8
    By doomish in forum MySQL Help
    Replies: 0
    Last Post: February 8th, 2004, 08:37 AM
  3. search DB by date range
    By Simm in forum PHP Development
    Replies: 1
    Last Post: February 4th, 2004, 01:35 PM
  4. how do I filter the time field in oracle
    By tjtee in forum Oracle Development
    Replies: 1
    Last Post: January 12th, 2004, 09:56 AM
  5. Replies: 0
    Last Post: January 5th, 2004, 07:44 AM

IMN logo majestic logo threadwatch logo seochat tools logo