I have a Carbon date like:
$new_days_count = Carbon::now();
dd($new_days_count);
Carbon {#764 ▼
+"date": "2019-07-20 19:06:49.119790"
+"timezone_type": 3
+"timezone": "UTC"
}
Now, I want to set a specific hours:minutes:seconds to that time, in order to have:
Carbon {#764 ▼
+"date": "2019-07-20 23:59:59.000000"
+"timezone_type": 3
+"timezone": "UTC"
}
How can I set it? I want to set always at 23:59:59.000000
endOfDay()
method and did what I need. Nice to read the other ways too. – Farrell