Answer the question
In order to leave comments, you need to log in
How to convert the number 06 to the word may?
I am displaying dates from the database, but instead of the number 01, I need to display Jan, for example
Answer the question
In order to leave comments, you need to log in
$monthNum = 1;
$dateObj = \DateTime::createFromFormat('!m', $monthNum);
$monthName = $dateObj->format('F');
stackoverflow.com/questions/18467669/convert-numbe...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question