This topic is locked
[SOLVED]

Show spanhis name of months in custom field

1/28/2023 6:09:36 AM
PHPRunner General questions
A
alfonso authorDevClub member

I have a custom fields to get name of month of date:
$value=date('F',strtotime($data["mes"]));

But I get it in english. I nee to show spanish name

Any idea? Thanks

A
alfonso authorDevClub member 1/28/2023

May be with
setlocale(LC_ALL, 'es_ES');
but I don't know where to put this code