# PHP date manipulation techniques ![php](https://www.php.net/images/logos/new-php-logo.png "PHP") ## ISO string date to PHP date object ```php format('Y-m-d H:i:s'); ?> ``` See the PHP [date()](https://www.php.net/manual/en/function.date.php) function for date format references. ## Date today in the Philippines ```php ``` ## Setting the default timezone ```php ``` ## Converting the timezone ```php setTimezone( $ph ); // Philippines timezone echo $datetime->format('Y-m-d H:i:s'); ?> ``` ## Numeric month to String month ```php $month = 3; (\DateTime::createFromFormat('!m', $month))->format('F'); \\ March ``` ## Reference **PHP**, DateTime class, URL: [https://www.php.net/manual/en/datetime.format.php](https://www.php.net/manual/en/datetime.format.php)