Hi all how to check validation for time

hi all below is my code
what i want is if i enter in textbox like time gretaer than 23:59 then alert should come i have written but no alert

@Html.Editor(" ", new { htmlAttributes = new { @class = "", maxlength = 35,@id= "etdtime", @Name ="etdtime", @onchange = "checketd()" } })

function checketd()
{




var splittime = $("#etdtime").val();

if(splittime[0] > 22 && splittime[1] > 58) {
alert('please enter a valid date'); return false;
}

}