PHP date_create() Function - W3Schools
https://www.w3schools.com/Php/func_date_date_create.asp
PHP date_create () Function Definition and Usage The date_create () function returns a new DateTime object. Syntax date_create ( time, timezone) Parameter Values Technical Details More Examples Example Return a new DateTime object (with a given timezone), and then format the date and time: <?php $date=date_create ("2013-03-15 23:40:00",timezone_open ("Europe/Oslo")); echo date_format ($date,"Y/m/d H:iP"); ?> Try it Yourself » ...
Definition and Usage The date_create () function returns a new DateTime object.
Syntax date_create ( time, timezone)
Parameter Values
Technical Details
More Examples Example Return a new DateTime object (with a given timezone), and then format the date and time: <?php $date=date_create ("2013-03-15 23:40:00",timezone_open ("Europe/Oslo")); echo date_format ($date,"Y/m/d H:iP"); ?> Try it Yourself » ...
DA: 64 PA: 48 MOZ Rank: 38