Fast date input

What is the best way to let the user enter a date as fast as possible.

For example, I have a field of the type DATETIME.

The format that must be used is DD/MM/YYYY (so not time part)

And I want that when users enters 25/3, that the current year is automatically added (to get 25/03/2008)

I noticed also that when you enter 25/03/08, that this translated into 25/03/0008, which makes me very unhappy, because this kind of date should never be allowed

Any suggestions?

If I were you I would create a date validator based on the input and the mask you allow.

For Servoy 4 we are working on a so-called converter mask: this will allow you to specify a display format for proper displaying and when teh user starts editing the field, no format will be applied.

Using a column converter you will then be able to script all the smart inputs you like.

Paul

That’s exciting to hear.

If those hooks are there, I’ll write support to roll DateJS (http://www.datejs.com/) into Servoy 4. Then you’ll be able to handle date inputs like “next friday”, “two weeks from now”, etc.

greg.