I am using Laravel Framework 6.16.0
and want to parse a date with carbon "Dec 14 02:04 PM"
:
$fillingDate = "Dec 14 02:04 PM";
$filling_Date = Carbon::parse($fillingDate, 'UTC');
// result is only a string "Dec 14 02:04 PM"
When using the above structure I only get the string back. However, I would like to get a Carbon object that gets then formatted to ->format('Y-m-d')
.
Any suggestions what I am doing wrong?
I appreciate your replies!