Answers for "php format date from timestamp"

PHP
2

php mysql timestamp format

date("Y-m-d H:i:s", strtotime($_POST['timestamp']));
Posted by: Guest on March-01-2020
1

mysql timestamp format php

echo date("Y-m-d H:i:s", time());
Posted by: Guest on August-31-2021
2

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
?>
Posted by: Guest on June-27-2020
0

php timestamp format

date("d.m.Y", strtotime($mysqltimestamp)
Posted by: Guest on December-08-2020
2

date to string php

$date_string_prepared = date_create("2020-08-07");
$date_string = $date_string_prepared->format("d M Y");
// result 07 Jul 2020
Posted by: Guest on August-29-2020

Code answers related to "php format date from timestamp"

Browse Popular Code Answers by Language