Answer the question
In order to leave comments, you need to log in
How to make the date of articles in the format day, month, year?
My date is in year, month, day format. Must be done as shown in the photo.
Answer the question
In order to leave comments, you need to log in
procedural style
echo date_format(date_create('2016-05-18'), 'd.m.Y');
echo date('d.m.Y', strtotime('2016-05-18'));
echo (new \DateTime('2016-05-18'))->format('d.m.Y');
The database type is DATE, <?php echo date('dmY', time create);?> throws an error!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question