can't answer with no context
by the way, you can create an iso8601 date like this
Carbon\Carbon::now()->format('Y-m-d\Th:i:s')
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello everyone, I have a problem about minimalize the value from input datetime-local. So I want to previous date is disabled when the time has passed. I have tried code like this
Carbon\Carbon::now()->format('Y-m-d') . 'T' . Carbon\Carbon::now()->format('h:m:s')
It's working in validation max input, but for min isn't and gets an error like this.
Please enter a valid value. The two nearest values are 04/10/2022 11:59:21 AM and 04/11/2022 12:00:21 PM
So how can I do for achieve this?
Please or to participate in this conversation.