Author: ianb
Date: 2006-12-27 21:15:37 -0700 (Wed, 27 Dec 2006)
New Revision: 2153
Modified:
FormEncode/trunk/formencode/validators.py
Log:
Fix DateConverter docstring; fixed SF #1575535
Modified: FormEncode/trunk/formencode/validators.py
===================================================================
--- FormEncode/trunk/formencode/validators.py 2006-12-28 04:10:56 UTC (rev
2152)
+++ FormEncode/trunk/formencode/validators.py 2006-12-28 04:15:37 UTC (rev
2153)
@@ -1551,9 +1551,10 @@
class DateConverter(FancyValidator):
"""
- Validates and converts a textual date, like mm/yy, dd/mm/yy,
- dd-mm-yy, etc, always assumes month comes second value is the
- month.
+ Validates and converts a string date, like mm/yy, dd/mm/yy,
+ dd-mm-yy, etc. Using ``month_style`` you can support
+ ``'mm/dd/yyyy'`` or ``'dd/mm/yyyy'``. Only these two general
+ styles are supported.
Accepts English month names, also abbreviated. Returns value as a
datetime object (you can get mx.DateTime objects if you use
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs