Possibility to change date format DateFilter #1073
Replies: 9 comments
-
Good idea, I'm actually in the code for date filters at the mo so I'll stick a PR in with a default of current, but option to change this. |
Beta Was this translation helpful? Give feedback.
-
This is still on my to-do list. However, I have stuck together a package of add-on filters very quickly which includes a Flatpickr Date Picker that does support custom date formats |
Beta Was this translation helpful? Give feedback.
-
I apologise! This fell off my radar yet again, but do feel free to use the add-on filter in the interim. |
Beta Was this translation helpful? Give feedback.
-
Just have some tests to write, so won't be in the next release, but expect this in the one that follows. |
Beta Was this translation helpful? Give feedback.
-
This will be in 2.13 |
Beta Was this translation helpful? Give feedback.
-
I tell a lie, 2.15, there were a couple of interim items. |
Beta Was this translation helpful? Give feedback.
-
I've been reviewing this over and over. I fully appreciate that various cultures and nations use different date formats. But this relates to how it is stored in the database, which I'd assume you're using Y-m-d for. If this is really in relation to how it's presented once it's applied in the pills/toolbar area, then the functionality already exists for customising this. The date picker itself is a browser native one, so it'll show the format however the locale is configured in browser If I've missed something, do let me know! There are some developments for filters in the works however |
Beta Was this translation helpful? Give feedback.
-
I'm going to add this into version 3.0 |
Beta Was this translation helpful? Give feedback.
-
@lucassmacedo - After a LOT of looking into this, the key issue at the moment is that the browser itself expects Y-m-d format for the date picker in order to actually function. If you present something else, then the native browser date picker won't work as you'd expect. The v3 DateRange filter does support varied formats, and I'll be adding a standard DatePicker which will also support date formats. I have however added customisable filter pills formats into V3 as an immediate feature. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be very interesting a way to change the date format to other standards such as Brazilian
Beta Was this translation helpful? Give feedback.
All reactions