textfield date autocomplete

Hi experts,
does anybody know a javascript that i can use for a textfield that can autocomplete the entered date.

for example

if someobody enter
9 -> show current moth with day 9 = 09.07.2009
15 -> show current moth with day 15 = 15.07.2009
today -> show current date = 09.07.2009
friday -> show date of next friday = 10.07.2009

and maybe after the user type 9 the cursor will be after this position and not at the end of the date.

does anybody know such a script?



bibabutzeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

b0lsc0ttIT ManagerCommented:
I have not seen a script that would do this.  It seems like it might get complicated to provide what you describe but is possible, at least for certain browsers.  If no other expert posts to let you know of one then I am afraid you will need to write it (or have it written for you).

Let me know if you have a question about this.  Don't give up just because of this post but I wanted to make sure you had a response.  I know of a lot of scripts, even autocomplete ones, but haven't seen one exactly like what you suggest.

A thought ... if you are looking at improving and speeding up entry of dates then look at a calendar picker.  Those are the common thing to use and make entering dates pretty easy.

b0lsc0tt
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.