DateTime::format

PHP 5 >= 5.2.1, PHP 7, PHP 8
DateTime::format - Returns date formatted according to given format
Manual
Code Examples

Example #1 DateTime::format example

Result: 2000-01-01 00:00:00
PHP Version:


Function DateTime::format:

Date and Time Functions

Most used PHP functions