I am trying to validate a text field that must contain a valid time. I thought I could do it easily using Date.parse(). According to the documentation if just a time string is passed to the function it will return a number (milliseconds since the Epoch). I then use 'isNaN' which should be false if an invalid time string was passed (a non number was returned by Date.parse()). So, either it does not work the way I interpreted the documentation or there is a syntax problem with the string. What I am passing to test with is "08:30". Can someone help me on this one? TIA.