Answers for "php datum formatieren"

PHP
0

php datum formatieren

<?php
$originalDate = "2020-04-29";
//original date is in format YYYY-mm-dd
$timestamp = strtotime($originalDate); 
$newDate = date("m-d-Y", $timestamp );
echo "The new date is $newDate.";
?>
Posted by: Guest on March-15-2022

Browse Popular Code Answers by Language