how define time validation in models's rules function

[font="Times New Roman"][size="4"]i have a model appointment, want to define rules function in model to validate these conditions before submit

[b]

start_time < end_time

end_time > start_time

start_time != end_time [/b]

Appointment-table has following fields

id(PK), title, client_name, app_date, start_time, end_time, status [/size][/font]

Hi

Than you have to use Jquery validations it’s provide you instant validation.

like user will write e-id than it’s check correct or not

if not than give error message.

Thanks