Question:
I have a date field on my ASP page. I want to restrict the user for entering only the dates in his Windows 95 machine’s date format. How can I validate the date when I am using VBScript in my ASP page for client-side processing?
Answer:
If you are using client-side VBScript then you can use this code to populate a text box called ‘dtNow’ in a form called ‘thisForm’.
Call WinLoad and then examine the value of the field dtNow. It will contain the date in the format of the client machine. This will only work with Internet Explorer though.
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.











