strtotime and date can sometimes do wonders, especially if you are working with dates >= 1970 (ie, which can be coded as a UNIX timestamp).
If you are using a recent enough version of PHP, the DateTime class (added in PHP 5.2 ; but several methods were added in PHP 5.3) might be helpful too -- other Date and Time classes could help, too.