Level 63
DateTime::createFromFormat('Y-m-d', $archivo->fecha)->format('M-Y')
Dec-2022
Have a look in this post.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have the following line that returns the following according to the date:
DateTime::createFromFormat('Y-m-d', $archivo->fecha)->format('M-Y')
Dec-2022
How could I translate the month into Spanish? Thanks
DateTime::createFromFormat('Y-m-d', $archivo->fecha)->format('M-Y')
Dec-2022
Have a look in this post.
Please or to participate in this conversation.