#88. PHP Date_create & Date_format Function

 How to work PHP Date_create & Date_format Function?

Syntax:

Run code:

<?php

// For future and past date set
$date = date_create("2038-03-22 22:33:32", timezone_open("Asia/Karachi"));

echo date_format($date,"d/m/y H:i:s");
?>

Comments

Popular posts from this blog

#30. PHP Recursive Function