SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2002
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Some date questions

    I'm extremely new and had a search and managed to get the now() working all okay. It outputs the date in this format 2002:02:15

    But is there any easy way of turning it into this format? 2002:Feb:15

    Also where does it get the time from? If I was to post and someone from a differant time zone was in the next day posted, would they be differant?

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will need to use the date() function to format it
    http://www.php.net/manual/en/function.date.php

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature


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
  •