Answers for "check if specific date exist in month carbon"

0

check if specific date exist in month carbon

$dateAsString = '1985-12-25';

if (Carbon::createFromFormat('Y-m-d', $dateAsString)->format('Y-m-d') === $dateAsString) {
    // Date is valid
}
Posted by: Guest on July-05-2021

Code answers related to "check if specific date exist in month carbon"

Browse Popular Code Answers by Language