|
From: Michael H. <mg...@gm...> - 2007-10-28 22:58:31
|
Hi all, there is currently an inconsistency in date entry. With the default setting of d.m.y entering "0" results in a value of September 30th 2007 (month defaults to 10, year defaults to 2007, the day is set to 0), with a date format of "Y-M-D" a "0" is not accepted as a valid date. This is a little confusing, and I would like to change it in a way that is more intuitive to the user and also more consistent, whatever the format happens to be. How about initializing the day, month, year values with the current date, parsing the entered value according to the date format, and refusing to accept invalid values for day, month and year? This way "0" would only be valid if the format started with the year, while for example "1" could be either the first day of the month, January, or 2001 (depending on the format). Please note that special values like "DATE", "TIME", "NOW" and "TODAY" are accepted in the SVN version for entering dates, times and timestamps. If there are other ideas for making data entry more robust and user-friendly, please share them. Thanks -- Michael Hieke |