SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    getting the date to work on my blog

    <?php $post = 10/12/09; // Hack. Set $post so that the_date() works. ?>

    i have this line of code in my script. what do i do next to make this date work? it seems a little bit unclear to me what to do to get it to work?
    thanks

  2. #2
    SitePoint Enthusiast
    Join Date
    May 2003
    Location
    Nova Scotia, Canada
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you trying to set the current date - or a date from a database?

    See: http://php.net/manual/en/function.date.php for information on the date php function.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, set the current date not from a database


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
  •