SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast snorky's Avatar
    Join Date
    Jul 2003
    Location
    Great Northwet
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Formatting Date Display

    I just coded myself into a corner.

    Within a pair of <p> tags I have two different scripts, each called by its own #include statement, and each displaying the current date - each in a different format.

    The first calls only for the year( yyyy ). The second calls for a complete date ( mm/dd/yyyy ).

    However when it displays,
    - the first displays correctly ( yyyy )
    - the second wrongly displays ( yyyy ) instead of ( mm/dd/yyyy )

    How can I get the second date to display correctly?
    Snorky
    Bless the little children while they're still too young to hate.
    - Tom T. Hall

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Show us the code - It's impossible to figure out what's wrong w/o seeing it.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Enthusiast snorky's Avatar
    Join Date
    Jul 2003
    Location
    Great Northwet
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It was a hardware problem: loose nut on the keyboard. When I went to gather up the code to send it in, I found the error. It seems that Javascript refuses to second-guess my typos.

    Sorry for cluttering up the turf.
    Snorky
    Bless the little children while they're still too young to hate.
    - Tom T. Hall

  4. #4
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hehe, no problem
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev





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
  •