{{ date("F", strtotime($item->cre" /> {{ date("F", strtotime($item->cre" /> {{ date("F", strtotime($item->cre"/>

How to extract month from "created_at" column and display in "Brazilian Portuguese"?

28 Views Asked by At

In my table, in "created_at" column:

2023-01-03 08:43:40

In my view I am using this code to extract the date:

<span>
   {{ date("F", strtotime($item->created_at)) }} de 
   {{ date("Y", strtotime($item->created_at)) }}
</span>

The result shows:

JANUARY de 2023

Is there a way to extract this month in Brazilian Portuguese?

To show like this:

JANEIRO de 2023

0

There are 0 best solutions below