silentsokolov / django-admin-rangefilter

A Django app that lets you filter data by date range and numeric range in the admin UI
MIT License
713 stars 106 forks source link

Change date format #47

Closed ktotok closed 4 years ago

ktotok commented 4 years ago

Is there a way to change date format in filter? By default I have YYYY-mm-dd i'd like to change it to mm-dd-YYYY

silentsokolov commented 4 years ago

We don't use a specific date format. Please, read django docs.

punithbm commented 3 years ago

@ktotok were you able to change the format to mm-dd-YYYY ? - We're also having similar case and trying to override the format to show mm-dd-YYYY. Please let me know if you were able to update that

silentsokolov commented 3 years ago

settings.py

USE_L10N = False
DATE_INPUT_FORMATS = ['%m-%d-%Y']

Result 1614144636455