Although one has to make sure to not do $d = new DateTime(); $e->setExpirationDate($d); $d->modify()… which one would expect to work.