Python
Django

Django template でDate Objectをフォーマットする

python
{{content.start_date | date:'l'}} => 日曜日
{{content.start_date | date:'c'}} => 2017-11-12T15:00:00+09:00
{{content.start_date | date:'D'}} => 日
{{content.start_date | date:'d'}} => 12
{{content.start_date | date:'M'}} => 11月
{{content.start_date | date:'Y'}} => 2017
{{content.start_date | date:'F'}} => 11月
{{content.start_date | date:'j'}} => 12
                          ```