News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

James Cohen's Blog:
Working with Date and Time in PHP
May 04, 2011 @ 08:59:23

James Cohen has a new post to his blog today looking at some of the built-in functionality that PHP has to work with dates and times including simple things like strtotime and the DateTime feature.

A lot of people ask questions relating to date and time in PHP. Here are some answers to the most commonly asked questions and common mistakes.

He covers the differences between working with dates in strtotime, worrying about timezone settings and compares the strtotime/DateTime methods for formatting and returning dates, modifying dates, converting between timezones as well as finding the difference between two timezones.

0 comments voice your opinion now!
date time datetime strtotime timezone tutorial procedural oop


blog comments powered by Disqus

Similar Posts

Stefan Mischook's Blog: Object Oriented Video Tutorials for your Ipod

Danne Lundqvist: Using Xdebug in MAMP

NETTUTS.com: Quick Tip: Loop Through Folders with PHP’s Glob()

PHPMac.com: Building and Installing Apache 2.2.2 and PHP 5.1.3 (or 5.1.4) on Mac OS X 10.4.6

PHPBuilder.com: Add Custom Components to Your PHP Development with PRADO


Community Events





Don't see your event here?
Let us know!


community language symfony2 laravel install list introduction opinion threedevsandamaybe developer unittest testing podcast code interview release framework api refactor series

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework