#94. PHP Date_time_set Function

 How to work PHP Date_time_set Function?

Syntax:

Run Code:


<?php

$date = date_create("2002-03-23");

date_time_set($date,12,21);

echo date_format($date,"d-m-Y H:i:s") . "<br>";

date_time_set($date,03,22,33);
echo date_format($date,"d-m-Y H:i:s") . "<br>";

?>

Comments

Popular posts from this blog

#30. PHP Recursive Function