I have given time picker to select time range the user can select start time and end time respectively.
start time : 11:00 AM end time : 05:00 PM
which is in 12 hours format, now I want to validate time such as start time should be more than 12:00 AM
and end time should be less than 12:00 PM (11:59 PM)
Now I'm getting getting time like this:
if(strtotime($start_time) > strtotime('12:00 AM') && strtotime($end_time) < strtotime('11:59 PM'))
{
echo "Time Validated";
}
else
{
echo "Time not validated";
}