[Answer]-Formatting date and time: in view (template) or in controller?

1👍

In django the proper place is in the django template (mvc view).

  • you can either use the builtin date formatting tags
  • or create your own custom date formating tags
  • or create a method on your model that returns the date formatted in
  • or change the global localization settings for how dates and times should be displayed.

Leave a comment