Results 1 to 6 of 6

Thread: PHP Date Question..

  1. #1
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635

    PHP Date Question..

    I have the php code in order to display todays 'day' on a web page..

    PHP Code:
    <?=date("j")?>
    But im wondering, how can i make it display YESTERDAYS date?

    So today would show 23 for the day, but on the same page, i also want to display 22 for the date.

    Is there an easy way of doing this?

    Regards,

    Lee


  2. #2
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496
    check here:
    http://www.codingforums.com/archive/...p/t-22018.html
    (google is your friend too)

    cheers,
    Luke


  3. #3
    AusCoding Allan
    Guest
    PHP Code:
    $yesterday date("j"mktime(000date("m") , date("d")-1date("Y"))); 
    Or you could try this.

    Cheers,

    Allan


  4. #4
    You do realize by 'gay' I mean a man who has sex with other men?
    Join Date
    Oct 2003
    Location
    New Orleans, Louisiana.
    Posts
    21,635
    Thanks guys appreciate the help

    Regards,

    Lee


  5. #5
    Have an idea and make it come to life! Gary-Alan's Avatar
    Join Date
    Oct 2003
    Location
    Daytona Beach, Florida, USA
    Posts
    2,591
    Quote Originally Posted by Chilihost
    check here:
    http://www.codingforums.com/archive/...p/t-22018.html
    (google is your friend too)

    cheers,
    Luke
    Thanks for that link, Luke. It's a bookmarked, now!
    Traffic is like your cock -
    Play with it and watch it GROW!


  6. #6
    H2ohNeil
    Guest

    good link

    That was really a good link.


Posting Permissions

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