See if this might help https://blog.ipswitch.com/date-formatting-in-python#:~:text=To%20do%20that%2C%20I'd,day%2C%20month%20and%20year%20is.
see full documentation here https://docs.python.org/3.4/library/datetime.html#strftime-and-strptime-behavior On Wed, Jul 8, 2020 at 5:01 PM Chander shekhar <bestc...@gmail.com> wrote: > my default date time format is something like 2018-07-01 > I want to change it like 01-01-2018 > Can any one help me in finding it > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/e5e0091d-425c-43d1-aa53-c16cabf5fe0bo%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/e5e0091d-425c-43d1-aa53-c16cabf5fe0bo%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAJsLnpcvfqecu0-CUoPW30hTL5NBzpkLLq3ynxwCgLOqbE7_g%40mail.gmail.com.