Itamar Campos
Itamar Campos

Reputation: 15

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

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

Upvotes: 0

Views: 27

Answers (0)

Related Questions