Category Archives: php

Converting dates in php

converting a date string 09/17/2014 to a unix time stamp and then to a date format to insert into myql as a date <?php $time = “09/17/2014″; echo $time.”<br/>”; $date = strtotime($time); echo $date.”<br/>”; $timestamp=$date; echo gmdate(“Y-m-d”, $timestamp); ?> you … Continue reading

Posted in php, web, Web Technology | Comments Off on Converting dates in php