How-To: Create a mysql friendly date with php
Jul.22, 2008 in
Development
This is really simple – and quite useful if you are trying to insert a date into mysql and you can’t use the “now()” mysql command (due to say a timezone difference): $date = date(“Y-m-d G:i:s”);
