in reply to Consecutive if loops

I would translate the users inputs into a 10 digit number by padding it with zeroes removing any dots. You can then numerically compare to the first field in your datafile. Just be careful with the end date/time... Apologies for not providing sample code but I have to run.
For every complex problem there is an answer that is clear, simple, and wrong. H. L. Mencken