/ Published in: PHP
Convert date from RSS to mySQL format
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Thu, 27 Dec 2012 13:35:18 +0000 // 2012-12-27 13:35:18 if ($ver>=53) { $date = DateTime::createFromFormat('D, d M Y H:i:s O',$s); $s = $date->format('Y-m-d H:i:s',$tm); } else { } return $s; }