I have a date in this format Fri, 15 Jan 2016 15:14:10 +0800, and I want to display time like this 2016-01-15 15:14:10.
What I tried is:
https://www.w3schools.com/php/php_date.asp
The required format parameter of the date() function specifies how to format the date (or time).
Here are some characters that are commonly used for dates:
Here are some characters that are commonly used for times:
https://www.php.net/manual/en/datetime.format.php
public DateTime::format ( string $format ) : string
format( 'Y-m-d H:i:s' );