Sep 18, 2022
8
Level 8
Is it possible to change the date format of an entire Collection?
If I have an instance of Illuminate\Support\Collection, which is data from a DB. And one of the columns is a date in the format of YYYY-mm-dd, is it possible to change the date format of the entire collection to dd-mm-YYYY?
Not while echoing it, but actually change it (so I can't use date_format, or the Carbon equivalent)
Please or to participate in this conversation.