I am working on a web-based application that will require users to enter a start and end time
I find selection boxes annoying for that purpose, and I am looking for any javascript functions that will interpret most entries that a user could put
for example:
1p, 1pm, 1:00pm, 13, 13:00 would all be 1:00PM
I know I can write it, but if someone has already written a comprehensive one, it would be appreciated.
Thanks,
Checkout Date.JS. The sample parser on their website correctly parses all the formats you have listed except
13, which it considers to be the date and parses asDec 13instead of1PM.