Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

PHP - Convert DateTo Mysql Format

function ConvertDateToMysqlFormat($dateStr){ @list($datePt, $timePt) = explode(" ", $dateStr); $arDatePt = explode(EW_DATE_SEPARATOR, $datePt); if (count($arDatePt) == 3) { switch (DEFAULT_DATE_FORMAT) { case "yyyy" . EW_DATE_SEPARATOR . "mm" . EW_DATE_SEPARATOR . "dd": list($year, $month, $day) = $arDatePt; break; case "mm" . EW_DATE_SEPARATOR . "dd" .



This post first appeared on Smash Scripts, please read the originial post: here

Share the post

PHP - Convert DateTo Mysql Format

×

Subscribe to Smash Scripts

Get updates delivered right to your inbox!

Thank you for your subscription

×