© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
H.Bilbao

TextInput datetime with milliseconds

I may be missing something.
I have the following TextInput:

TextInput::make('finish_time')
   ->type('datetime-local')
   ->step('.001'),
TextInput::make('finish_time')
   ->type('datetime-local')
   ->step('.001'),


Model:
protected $casts
    = [
        'start_time'   => 'datetime:Y-m-d H:i:s.v',
    ];
protected $casts
    = [
        'start_time'   => 'datetime:Y-m-d H:i:s.v',
    ];


For example, if I want to change only the milliseconds, it is not updated in the database, but if I also change, for example, the seconds, the milliseconds update correctly
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

TextInput with follow action
FilamentFFilament / ❓┊help
2y ago
TextInput numeric with step
FilamentFFilament / ❓┊help
3y ago
FileUpload with TextInput disabled.
FilamentFFilament / ❓┊help
3y ago