Question and answer is powered by AnsPress.io
If my date will “2020-12-15”;
I want to output: “Tuesday, 15th December – 2020”
I can’t do it.
Apply this code:
<?php $currentDate = date('Y-m-d'); echo date('l, jS F - Y', strtotime($currentDate)); ?>
Output: “Tuesday, 15th December – 2020”