<human>:  How to convert datetime to string in python in django
<bot>: Here is some code to jinja2 formate date `item.date` accorto pattern 'Y M d'

{{(item.date | date): 'Y M d'}}

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.