function($d) { if ( !bbn\Str::isNumber($d) ){ $d = strtotime($d); } if ( ($d > 0) && bbn\Str::isNumber($d) ){ return (float)$d; } return null; }