Datepicker without time

Hi, I'm using this Datepicker:
DatePicker::make('created_from')
->native(false)
->displayFormat('d/m/Y')
->minDate(now()->subMonths(2))
->maxDate(now())
->label('Desde')
->default(now()),
DatePicker::make('created_from')
->native(false)
->displayFormat('d/m/Y')
->minDate(now()->subMonths(2))
->maxDate(now())
->label('Desde')
->default(now()),
With this I'm getting Date with format 'Y-m-d H:i:s' but I don't need time, so I try to do ->time(false) but it's not working. If I use ->native(true) it's works.
2 Replies
Matthew
Matthew12mo ago
Im prety sure its ->withoutTime()
Daniel Reales
Daniel RealesOP12mo ago
It's deprecated 🥲
Want results from more Discord servers?
Add your server