Legacy date object for PHP 5.1+