• Home
  • Biography
  • chop.com.au
< PHP Snippet – Time difference between 2 date/time stamps.
Lego Technic 8290 >

PHP Snippet – Get Yesterdays date

February 27, 2010, 2:43 pm  |  Posted in: Code Snippet, Dev, PHP

This is a simple function that returns yesterdays date. Simple but handy.

function yesterday()
{
 $yesterday = date("Y:m:d",mktime(0,0,0,date("m") ,date("d")-1,date("Y")));
 return $yesterday;
}
Tags: Code Snippet, PHP
 |  Comment (RSS)  |  Trackback

Leave a Reply

Click here to cancel reply.

  • Author

    Leon Wilson spends most of his time designing and developing flash sites, and wishes he was better at high end 3D.

  • Download V Card

  • Categories

    • 3D
    • Dev
      • Code Snippet
      • PHP
    • Flash
    • Freelance
    • General Banta
    • Graphic Design
    • Identity
    • Rumbles & Mumbles
    • Uncategorized
    • Website
  • Archives

    • September 2010
    • August 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • November 2009
    • September 2009
    • August 2009
    • June 2009
    • May 2009
    • April 2009
    • February 2009
Copyright © 2010 Leon Wilson. All rights reserved.
Powered by WordPress.