Ubah format tanggal pada template django
<p>Birthday: {{ birthday|date:"M d, Y" }}</p>
Zealous Zebra
<p>Birthday: {{ birthday|date:"M d, Y" }}</p>
{{ request.user.date_joined|date:"Y-m-d H:i:s" }}
<p>Birthday: {{ birthday|date:"M d, Y" }}</p>
# get the object details
home = Home.objects.get(home_id=homeid)
# get the start date
_startDate = home.home_startdate.strftime('%m/%d/%Y')
# assign it to template
return render_to_response('showme.html', {'home_startdate':_startDate}, context_instance=RequestContext(request) )