|
|
View previous topic
::
View next topic
|
Author |
Message |
ramon fincken Site's programmer
 Get a free globally recognized avatar It's free!
Joined: 03 Aug 2007 Posts: 412 Location: A'dam/Diemen, The Netherlands
|
Posted: Thu Mar 19, 2009 1:50 pm Post subject: [snipplet] Convert mysql date to unixtime |
|
|
Yes this is the quick and dirty way of converting a row with a mysql date to a unixtime:
Code: | // Mysql date to unixtime
$date_org = $row['mysql_date'];
$date_split = explode('-',$date_org);
$date_unix = mktime(0,0,0,$date_split[1],$date_split[2],$date_split[0]); |
|
|
Back to top |
|
 |
Google adsense Advertisement
|
Posted: Thu Mar 19, 2009 1:50 pm Post subject: [snipplet] Convert mysql date to unixtime |
|
|
Advertisement
|
|
Back to top |
|
 |
GravityForms Advertisement
|
Posted: Thu Mar 19, 2009 1:50 pm Post subject: [snipplet] Convert mysql date to unixtime |
|
|
Advertisement
 |
|
Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|