method isDateSql documentation in bbn\Str

Checks if the argument is in a valid SQL date format.

Example

X::dump(\bbn\Str::isDateSql("1999-12-05 11:10:22")); // (bool) true X::dump(\bbn\Str::isDateSql("1999-12-05")); // (bool) true X::dump(\bbn\Str::isDateSql("19-12-1999")); // (bool) false function($st) { foreach (func_get_args() as $a) { if (!Date::validateSQL($a)) { return false; } } return true; }

Checks if the argument is in a valid SQL date format. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.