Tag Archives: Dates

Yet Another Pretty Date JavaScript

I can’t let this Pretty Date thing go. I decided to use a modification of John Resig’s Pretty Date JavaScript implementation written by Dean Landolt and shared in the comments on John’s page. The script was an obvious choice for the next iteration of Alarmd, which is nearing completion as I type. The more I [...]
Posted in JavaScript, Projects | Also tagged | 25 Comments

PHP Pretty Date

This class is pretty much a direct port of John Resig’s JavaScript Pretty Date to PHP 5. A few notes: Requires PHP >= 5.10, due to the usage of PHP’s new DateTimeclass. The new DateTime object parses strings using PHP’s strtotime, so you don’t need to pass in an ISO8601 formatted date, as in JavaScript [...]
Posted in PHP, Projects | Also tagged | 4 Comments