Convert given MySQL date string into a different format.
Convert from MySQL datetime to another format with PHP $format should be a PHP date format string. ‘U’ and ‘G’ formats will return a sum of timestamp with timezone offset. $date is expected to be local time in MySQL format (Y-m-d H:i:s). Historically UTC time could be passed to the function to produce Unix timestamp. If $translate is true then …
Convert given MySQL date string into a different format. Read More »