date shortcuts

I’ve searched around but not found something that will help with this. I want to be able to allow the user to enter partial dates and other shourtcuts, and have them correctly transformed into a date.

eg

0403 ==> 04/03/06 (the current year is added)

11 ==> 11/04/06 (the current year and month are added)

4.6.05, 4/6/05, correctly displayed

t ==> today
y ==> yesterday

before I start writing a method to do this, can anyone point me to an existing utility?

How do we test if a valid date is entered?

Thanks ++

Hi Antonio

Given the range of possible input options I really think the only way is to build a Javascrip method.

Nice idea though - be sure to share the solution with us :)

Regards

Graham Greensall
Worxinfo Ltd

Don’t forget to make the field they input into a TEXT field - otherwise you’ll be frustrated! :D

Great stuff, though!