I get a date date
of the database and when I show it, the day and the month are correct, but the year is not.
This is how I get the date from the database:
$fecha_ingreso = \Carbon\Carbon::parse($user->fecha_ingreso); //2016-05-05
And this is what I printed on the screen:
object (Carbon \ Carbon) # 260 (3) {["date"] = > string (26) "2155-05-05 00: 00: 00.000000" ["timezone_type"] = > int (3) ["timezone"] = > string (3) "UTC"}
What can cause this error?
If I do it with the current date, it shows it correctly, but with the database date not.