Welcome to rossp.org

menu

  • Homepage
  • Tumblog
  • About Me
  • Projects
  • Blog Archive
  • Links

find me

  • Twitter
  • Flickr (Photos)
  • Readernaut (Books)
  • LinkedIn
  • Django People

Archives

  • Dec 2011
  • Nov 2011
  • Jan 2011
  • Jun 2010
  • Jun 2009
  • Apr 2009
  • Feb 2009
  • Jan 2009
  • Dec 2008
  • Oct 2008
  • Sep 2008
  • Aug 2008
  • Jul 2008
  • Jun 2008
  • May 2008
  • Apr 2008
  • Mar 2008
  • Feb 2008
  • Jan 2008
  • Dec 2007
  • Nov 2007
  • Oct 2007
  • Sep 2007
  • Aug 2007
  • Jul 2007
  • Jun 2007
  • May 2007
  • Apr 2007
  • Feb 2007
  • Jan 2007
  • Dec 2006
  • Nov 2006
  • Aug 2006
  • Jul 2006
  • Jun 2006
  • May 2006
  • Feb 2006
  • Jan 2006

RSS Feeds

  • Latest Items
  • Latest Blog Posts
  • Latest Links
  • Django-related items

Links

  • Wedding Dresses
  • Diamond Rings

Julien Phalip: Site-wide, user-configurable date formats for display AND entry

11:56 p.m., Wednesday 30 July, 2008. Tagged dates and django. Short Link (Twitter etc)

Julien Phalip has put together a fantastic article on how he tackled the problem of different users wanting different date formats.

Using his simple code samples, you could give the user many different choices for date format - yyyy-mm-dd, dd-mm-yy, mm-dd-yyyy, or others. The best part is that these formats are then picked up not only for displaying dates to users, but for any date entry that user has to do on your site.

http://www.julienphalip.com/blog/2008/07/30/simple-site-wide-user-date-format-validation-syste/

© Copyright 2008 Ross Poulton. All Rights Reserved. Opinions expressed here are my own, and are not those of my employer or any other party. Powered by Django.