#5526: Localized Date/DateTime fields proposal
-----------------------+----------------------------------------------------
Reporter:  janr        |       Owner:  nobody                    
  Status:  new         |   Component:  django.contrib.localflavor
 Version:  SVN         |    Keywords:                            
   Stage:  Unreviewed  |   Has_patch:  1                         
-----------------------+----------------------------------------------------
 This is an attempt at providing Date/DateTime fields for locales other
 than
 English. The patch provides a !DateField, !DateTimeField and
 !DateTimeInput widget that accept Dutch input.
 
 It should be relatively easy to add additional locales (at least, that was
 the setup) .
 
 Short example:
 {{{
 >>> from django.contrib.localflavor.nl.forms import DateField
 >>> f = DateField()
 >>> f.clean('25 augustus 2003')
 datetime.date(2003, 8, 25)
 
 >>> from django.contrib.localflavor.nl.widgets import DateTimeInput
 >>> d = DateTimeInput(date_output_format='%d %B %Y')
 >>> d.render('foo', datetime.now())
 u'<input type="text" name="foo" value="17 september 2007" />'
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5526>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to