Date conversions

@Howan Ingo Polster
Thu, 05 Sep 2024 16:31:00 +0000

Hi everyone,

I save my dates in the format datetime in mysql.
I just want to format them for display resons.

I found 2 ways. Both work. Is there a difference or a preferred one?

<?= h($ticket->created->i18nFormat('dd.MM.yyyy')) ?>
<?= h($ticket->created->format('d.m.Y')) ?>

Thank you!