Which format of date do you use? You can use this method: if (Carbon::createFromFormat('YOUR DATE FORMAT', $stringVariable) !== false) { // valid date }.
確定! 回上一頁