How Convert 9999-12-31 To 31.12.9999 ?

how convert 9999-12-31 to 31.12.9999 ?

date("d.m.Y",strtotime($date)) not working! because unixtime works up to 2028.

work it! but not Yii methods (


$date = ‘9999-12-31’;

$format = ‘d.m.Y’;

$mydate2 = new DateTime($date);

echo ‘<p>’, $mydate2->format($format), ‘</p>’;


Also, Yii doesn’t make coffee. Sometimes you need to get your hands dirty and do some coding.

Yee! Yii doesn’t make coffee ))

I was hoping for help CDateFormatter or CDateTimeParser…