SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Addict tedleonard's Avatar
    Join Date
    Jun 2000
    Location
    Dark side of the moon
    Posts
    255
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't figure out how to get a javascript to show today's date in this format - DD-MM-YYYY... Can someone help?? Thanks in advance.

    -A javascript newbie

  2. #2
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because JavaScript is client-side (i.e. operates on your browser, not the server) the date displayed by JavaScript will depend on the time format used by your computer, not the server.

    I *think* there may a way to force the date into a specified format, but don't quote me on it..
    My 2 Cents (or is that 2.2 Cents including GST?)

  3. #3
    SitePoint Addict tedleonard's Avatar
    Join Date
    Jun 2000
    Location
    Dark side of the moon
    Posts
    255
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmmm this is true. Do you know how to do it using SSI or PHP? Thanks for your help!

  4. #4
    SitePoint Addict tedleonard's Avatar
    Join Date
    Jun 2000
    Location
    Dark side of the moon
    Posts
    255
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nevermind, I got it with PHP! Thanks for your help!


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
  •