John Congdon

Archive for the ‘PHP Snippets’ Category

04 Jun, 2008

Calculating This Day Last Year in PHP

Posted by: admin In: PHP Snippets

Have you ever wanted to know what the date was last year on this day?
Example: You want to compare sales from Wednesday of this year to the same Wednesday of last year. There is a very simple solution in PHP.
[code]function ThisDateLastYear($date_in) { // date_in = input date in form of [...]

Tags:

What I'm Doing...

Posting tweet...

Powered by Twitter Tools.

About

I am a web programmer that specialized in E-Commerce, SEO, and Warehousing.

I currently work for bowlingball.com as the lead programmer. I am constantly working to make this website the premier website in the bowling industry, with a much bigger vision for the future.