Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

time to string in php

<?php
$date = '27/06/2020, 04:42:43 PM';
$date = str_replace('/', '-', $date);
echo date('F j, Y, g:i a',strtotime($date));

// output : June 27, 2020, 4:42 pm
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #time #string #php
ADD COMMENT
Topic
Name
9+4 =