app/functions.php
/**
 * Formats date to be stored in MySQL database.
 * 
 * @return string
 * @since 1.0.0
 */
Formats date to be stored in MySQL database.


Formats date to be stored in MySQL database .
function formatDate($date)
{
    $date = strtotime($date);
    $date = date("Y-m-d", $date);
    return $date;
}
function formatDate ( $ date ) { $ date = strtotime ( $ date ) ; $ date = date ( " Y-m-d " , $ date ) ; return $ date ; }
Formats date to be stored in MySQL database.
Formats date to be stored in MySQL database .