$day = '2019-10-30 18:29:19'; $date = Carbon::createFromFormat('Y-m-d H:i:s', $day); $date->subDay(); // Subtracts 1 day echo $date->format('Y-m-d h:i:s');