Search code examples
htmlasp-classicdatefield

Can I create Date entry control with date separator for classic ASP


I was using a calendar control for entry of date in a classic-ASP application. But calendar control is not keyboard friendly and take more time for data entry. So later I added a simple text box with date validation. It works fine. However, the user need to put the date separator also. I wish to put a date entry field that comes with a pre-configured date format and separator, so that the user simply type on the numbers and the field cause a validation as well.

How can I achieve this?


Solution

  • Just use jQuery/javascript to mask the date text field. It will automatically format the date as the user enters the values. Also forces correct validation as it works.

    for example jQuery plugins search for :

    jquery date mask: http://digitalbush.com/projects/masked-input-plugin/