Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Kunzilla's avatar

How to change the date format in model at json output?

Hi, i dont want to use moment.js for date/time formatting (one more library is one too much i think). So i think, how can i fix this within laravel. I readed that there are a date_format variable, but it doesnt work.

How can i fix that?

0 likes
1 reply

Please or to participate in this conversation.