Answers for "data format and get data using php"

PHP
0

format date in php

$myDateTime = DateTime::createFromFormat('Y-m-d', $dateString);
$newDateString = $myDateTime->format('d-m-Y');
Posted by: Guest on March-25-2021
0

Format and show date PHP

<?php echo date("h:i A d/m/Y", strtotime($past_event->added_date)); ?>
Posted by: Guest on October-12-2021

Browse Popular Code Answers by Language