CodePudding user response:
In the github page, there is examples of how to convert dates into this package you are using.
return CalendarUtils::createDatetimeFromFormat("$year-$month-$day", $date);
You are injecting the date parameters into the format parameter, i would assume it should be like this instead.
return CalendarUtils::createDatetimeFromFormat('y-m-d', $date);
CodePudding user response:
In the package's readme, you can use toGregorian method. But i hope this gist can help you so.