I can never ever find this information on the web when I need it, so I’m recreating here to save my own time, and that of anyone else who stumbles upon it.
$datetime = date('Y-m-d H:i:s') ;
Non-geeks, you can keep on walking, thanks.
I can never ever find this information on the web when I need it, so I’m recreating here to save my own time, and that of anyone else who stumbles upon it.
$datetime = date('Y-m-d H:i:s') ;
Non-geeks, you can keep on walking, thanks.
Posted in Computers
thanks for that. I was looking for that querry
By: alexito on September 24th, 2008
at 9:10 AM
Glad to know it’s of use to someone else too. In the month since I posted this, I’ve used it at least 4 times myself!
By: Matt Fletcher on September 24th, 2008
at 10:33 AM
Keep in mind most of the time its more efficent to use Database functions like MySQL NOW(). http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_now
By: Werner Hartnagel on June 2nd, 2009
at 4:59 PM
@Matt – thank-you for the info. Neat and to the point.
ps. loved this:
“Non-geeks, you can keep on walking, thanks.”
By: Craig Ackermann on October 23rd, 2009
at 11:42 AM