I'm currently maintaining an application where a lot of date or datetime fields are managed.
Based on my experience dates input should be widely improved in Servoy.
I would like to propose the following improvements (all based on my current Servoy knowledge, sorry if I missed something...)
1) Calendar button. It should be an option to avoid cursor going on it. As of 3.5.10 users MUST always push two <NEXT_FIELD> key to really go to next field.
2) Calendar button. It should be possible to launch a customized calendar.
3) Any not digit character should be accepted as separator when a date or a time or a datetime is keyed based on defined format for that field. I mean: 01-10-2000 is evaluated equal to 01/10/2000 is evaluated equal to 01.10.2000 is evaluated equal to 01/10-2000 is evaluated equal to 01:10:2000 is evaluated equal to 01.10/2000. This is true also for the time only part: 01.10.20 if format is hh:mm:ss or for a full datetime field: 01.01.2001.01.01.01 if format is dd-MM-yyyy hh:mm:ss.
4) When exiting from an accepted date based on #3 date should automaticcaly be formatted based on format defined: keying 01.01.2001.01.01.01 if format is dd-MM-yyyy hh:mm:ss after leaving the field become 01-01-2001 01:01:01
5) If the user digit just first part(s) of those separated numbers composing datetime field then leave the field, after basic checkings, missing parts based on the current format are assumed as defaults the current day, month, year, hour, minute, second, tick. Example: if now is 07 aug 2009 10:11:12 and format is dd-MM-yyyy hh:mm:ss and the user keys 15 then exit the field accepted date become 15-08-2009 10:11:12
Comments?
Tnks,
Gianni