![]() |
Hello
I'm willing to display dates, saved in database as Datetime format. Insert & Updates are working perfectly fine. But when displaying and localizing this field with : Code: <?= $task->expired_at->toLocalizedString('d MMMM yyyy'); ?> Call to a member function toLocalizedString() on string Can anyone please help ? Thank you
It seems your $task->expired_at has a string value.
Check the Entity config. See https://codeigniter4.github.io/CodeIgnit...e-mutators |
Welcome Guest, Not a member yet? Register Sign In |