Skip to content

GeekyBoy.com

Adam Culp's Tech Blog

A South Florida PHP developer (SoFlo Tech) passionate about technology posting interesting things, mostly to remember, but also to help others. I'm a PHP certified engineer and part of the Zend Certification Advisory Board, currently work as a Senior Professional Services Consultant with Zend Technologies. I am very active in global and local PHP communities, and organize the South Florida PHP Users Group (SoFloPHP) as well as the SunshinePHP Developer Conference in Miami. I also created Beachcasts to share tech videos from SoFlo. Read More >>
Zend PHP 5.3 Certified Zend Certification Advisory Board

Pages

  • About Adam
  • Talks
  • Videos
  • Pair with me
  • Contact

Beachcasts Tech Videos
Watch Now!

Run Geek Radio
Listen Now!

Recent Posts

  • Sharing the Beachcasts office and studio set up
  • Solve problems and stop failing with PHP
  • Changes
  • 10 reasons to become a consultant or have a consulting business
  • Zend Framework becomes Laminas project
Top PHP Blogs

Tag: strtotime

Get past date or convert different date format with php

Quick way to figure out a past date in PHP.

echo date("Y-m-d", strtotime("20 days ago"));

echo date("Y-m-d", strtotime("20 days ago"));

echo date('Y-m-d',strtotime('12/15/2008'));

echo date('Y-m-d',strtotime('12/15/2008'));

Posted on January 25, 2007April 18, 2009Categories php, programming, Quick TipsTags convert dates, date, php, programming, strtotimeLeave a comment
Proudly powered by WordPress