07-14-2017, 08:36 PM
>How can I get Date of MySQL with DB Class?
$db->query("SELECT CURRENT_TIMESTAMP")->first(true)["CURRENT_TIMESTAMP"];
>Is possible to implement a method like $db->getDate(); ?
Yes, go ahead.
$db->query("SELECT CURRENT_TIMESTAMP")->first(true)["CURRENT_TIMESTAMP"];
>Is possible to implement a method like $db->getDate(); ?
Yes, go ahead.