menu

  • Latest Items
  • About Me
  • Projects
  • Blog Archive
  • Links
  • Quotes

Archives

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

RSS Feeds

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

Links

  • atlanta wedding dress
  • A Cincinnati Wedding DJ
  • Ribbon Sheer Ribbon Wholesale
  • Python Programmers and Jobs
  • usa wedding
  • Engagement Rings
  • Custom Rubber Stamps
  • Join our Python Community

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

11:56 p.m., Wednesday 30 July, 2008. Tagged dates and django

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 nare not those of my employer or any other party. Powered by Django.