PHP test

Posted by timotheus on December 13th, 2007 filed in Random

This is to see if the syntax highlighting plugin works..


<?php
    $Usersdate = 'Sat Dec 1 2007 9:56:42 GMT-0800 (Pacific Standard Time)'; //this date comes from the date() javascript function
    echo date('Y-m-d H:i:s', strtotime(substr($Usersdate, 0, strpos($Usersdate, ' GMT'))));  //strips everything right before the GMT, then formats it for MySQL
?>

Leave a Comment