import django.newforms as forms import datetime class DateTextInput(forms.TextInput): def render(self, name, value, attrs=None): if (type(value) == datetime.date): value = value.strftime("%d.%m.%Y") return super(DateTextInput, self).render(name, value, attrs)