Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Sep 29, 1999

Access Client's Windows Date Format

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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap