Вы можете использовать strtotime
или DateTime
класс.
// Using strtotime
$date = strtotime($row['post_date_gmt']);
// Using the DateTime class
$date = new DateTime($row['post_date_gmt']);
Поскольку дата указана в GMT, а ваш сервер, скорее всего, нет, возможно, целесообразно также указать часовой пояс. Вот пример использования DateTimeZone
.
$timezone = new DateTimeZone('UTC');
$date = new DateTime($row['post_date_gmt'], $timezone);