© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Tieme

Table defaultGroup 'date' format datetime

Hi All,

I'm grouping my records by date with
    ->defaultGroup('date')
    ->configure([
        Table::$defaultDateDisplayFormat = 'l d F Y'
    ])
    ->defaultSort('date', 'desc')
    ->defaultGroup('date')
    ->configure([
        Table::$defaultDateDisplayFormat = 'l d F Y'
    ])
    ->defaultSort('date', 'desc')

Is there a possability to format the date display because it shows as Date: 2023-11-25 00:00:00 and want it to be Date: Saturday 25 November 2023?

For now my solution is below, but there will be added extra selects for the group that i dont want.

    ->defaultGroup('date')
    ->groups([
        Tables\Grouping\Group::make('date')
            ->collapsible(true)
            ->date(true)
    ])
    ->configure([
        Table::$defaultDateDisplayFormat = 'l d F Y'
    ])
    ->defaultSort('date', 'desc')
    ->defaultGroup('date')
    ->groups([
        Tables\Grouping\Group::make('date')
            ->collapsible(true)
            ->date(true)
    ])
    ->configure([
        Table::$defaultDateDisplayFormat = 'l d F Y'
    ])
    ->defaultSort('date', 'desc')


And als the defaultSort is not working if i apply the group, how can i sort the records with groups?
Solution
For my case with one group i found the solution in "->groupingSettingsHidden()"
Jump to solution
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

DateTimePicker: Error - Invalid datetime format
FilamentFFilament / ❓┊help
3y ago
Set default dateTime() table display format
FilamentFFilament / ❓┊help
6mo ago
Format datetime picker
FilamentFFilament / ❓┊help
2y ago
Default date format
FilamentFFilament / ❓┊help
5mo ago