Results 1 to 2 of 2

Thread: "Local Time script" I want to hide the day and just show the time

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default "Local Time script" I want to hide the day and just show the time

    1) Script Title: Local Time script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex6/localtime.htm

    3) Describe problem:

    Hi there,
    I'm using the Local Time script and I have it set to short but it shows the time like this:

    11:44:08 AM (Wed)

    That's all fine, but I'd rather the script just showed the time and not the day or date at all. Can you please tell me how to change this so it only shows the time? I'm using the SSI version of the script.
    Last edited by coreyvf; 11-19-2008 at 10:09 PM.

  2. #2
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Got the answer thanks:

    Replace this line:
    Code:
    this.container.innerHTML=formatField(hour, 1)+":"+formatField(minutes)+":"+formatField(seconds)+" "+ampm+" ("+dayofweek+")"
    With this line:
    Code:
    this.container.innerHTML=formatField(hour, 1)+":"+formatField(minutes)+":"+formatField(seconds)+" "+ampm+" "

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •