Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear all,

I have to validate the time between start time to end time and my time formate 'HH:MM' ,24 hour formate.

eg.
starttime='10.00';
endtime='18.00'

1.the start time can't be less then 10.00.

2.the end time can't be greater then 18.00.

3. it must the time between start time to end time.


pleas help the validation.

Thanks and regards,
Have a nice day.
Posted
Updated 16-Oct-13 0:35am
v2

1 solution

step 1 : get time in a variable t or access the element by id
step 2 : if(t<10&&t>18>) if true
step 3 : user can access
step 4 : else
step 5 : user can't access
 
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