Click here to Skip to main content
15,899,025 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
i have two text boxes
1.from time
2. to time

how i validate these text boxes so that user enter time in 10:30 am or pm manner

and how to save it into sql server 2000 database (which accept one field to be declared as timestamp data type in one table)


thanxz in advance!!!!!!!!! :doh:


i m saying about time only !!!!!!!!!!!!!!!!
Posted
Updated 13-Feb-10 0:27am
v2

Use a regular expression validator.. :)

More details: Here[^]
 
Share this answer
 
v2
This might come handy to you I think:

http://javascript.internet.com/forms/val-time.html[^]

See the Regular expression.
 
Share this answer
 
Use a Calendar control for entering date time.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900