© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
bhattji

How to set date of the DatePicker component?

I wish to set the Maturity date when the Loan Date is entered. I have written the code as below

->reactive()
->afterStateUpdated(function (callable $get, callable $set) {
$scheme = \App\Models\Scheme::find($get('scheme_id'));
if ($scheme){
$set('maturity_date', \Carbon\Carbon::parse($scheme->loan_date)->addDays($scheme->days));
}
})

but it is not working 😦

How to set date of the DatePicker component?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Default date of DatePicker
FilamentFFilament / ❓┊help
14mo ago
datepicker initial date
FilamentFFilament / ❓┊help
2y ago
Datepicker date format
FilamentFFilament / ❓┊help
3y ago
How to set default date in DatePicker form field in filtersForm?
FilamentFFilament / ❓┊help
2y ago