Closed amirhossein-shakeri closed 3 years ago
When I use
$carbon = \Morilog\Jalali\CalendarUtils::createCarbonFromFormat('Y-m-d', '1399-2-5');
There is an error called Undefined array key "year"
but when I use it this way
$carbon = \Morilog\Jalali\CalendarUtils::createCarbonFromFormat('Y-m-d', '1399-02-05');
That works fine.
It has problem with 1 but it works with 01
because m or d expects two digits and you entered only one digit
m
d
When I use
There is an error called Undefined array key "year"
but when I use it this way
That works fine.
It has problem with 1 but it works with 01