date

Getting Yesterday's Date in PHP

It’s a blessing and a curse the way there are so many different methods to calculate things. For instance calculating or retrieving yesterday’s date in PHP: I came up with 4 quick ways to calculate it. I always remember method 1, using mktime() but decided to benchmark each of them to see which method of [...]

Read the full article →

15 Creative Ways to Display Date Archives

Date based archives aren’t necessarily the most important thing for your site but if it’s another opportunity to present your information in a different (hopefully creative way) then why not do it? Let’s examine 15 different examples to see what works well, and what lacks in workingness.

Read the full article →

Relative Dates in WordPress Templates

One of my favorite trends online is using relative dates like ’1 week ago’ or ’4 days ago’ instead of the standard June 11, 2008. I find it helpful in really getting a feel for the freshness of an entry or comment and it’s super easy to implement in WordPress.

Read the full article →

Birthday MySQL Query Hates Timestamps

In order to query the users with birthdays from my MySQL table I had to convert Unix timestamps saved as integers to a more usable DATETIME format, then we explore two ways to query the birthdays.

Read the full article →

JavaScript Cookies – Baking Has Never Been So Easy!

Setting, updating retrieving and deleting cookies with JavaScript is a whole lot easier than I remembered. I’ve not got a quick library of functions available at my fingertips for such actions, wanna see?

Read the full article →