While it's current possible to edit dates from the grid perspective, you have
to enter a date in the specific format of the Python datetime object, which is
unnecessary because:
(1) it's a very unnatural format to type
(2) we don't even use the time portions of the format
The operator should be able to enter a date in any of a set of "standard
formats" (mm/dd/yyyy, mm/dd/yy, mmm dd, yyyy, etc...) and the tool should be
able to convert that into a datestamp and push it into the database.
This will involve:
(1) a regex to parse the input string and determine if it matches an understood
format.
(2) use of a Python function to convert from string to datestamp. This is
already used in the FINally code (datetime.strptime(...)). The string format
for this function will be determined by the particulars of the regex match. For
example, if the regex matches yy-mm-dd then the input to the strptime function
will need to match (%Y-%m-%d).
Original issue reported on code.google.com by Daniel.S...@gmail.com on 23 Aug 2010 at 1:21
Original issue reported on code.google.com by
Daniel.S...@gmail.com
on 23 Aug 2010 at 1:21