Answers for "format() in now day php"

PHP
1

create date from string php

$element = '15-Feb-2009';
$date = DateTime::createFromFormat('j-M-Y', $element);
Posted by: Guest on October-22-2020
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