Return to Snippet

Revision: 49419
at July 21, 2011 20:33 by theworldofdan


Initial Code
<?php
// Source: http://www.richardlord.net/blog/dates-in-php-and-mysql
// populates $datetime with a valid MySQL DATETIME value
$datetime = date('Y-m-d H:i:s');

Initial URL

                                

Initial Description

                                

Initial Title
MySQL datetime format using PHP

Initial Tags

                                

Initial Language
PHP