please help me in this issue

I have the log file as this

date 18:00:00
date 18:01:02
date 18:02:00
date 19:06:00
date 18:03:00
date 18:05:00

I want to get date between 18:00:00 to 18:05:00.

I given the command as grep [18:00:00-18:05:00] file name but it is not working.

Please give me reply.
Thanks & Regards,
Vijay,

that range do not work try..

-bash-3.2$ grep 18:[00-05] test
date 18:00:00
date 18:01:02
date 18:02:00
date 18:03:00
date 18:05:00
-bash-3.2$

A solution

awk '{print $2}' | awk -F ":" '{if ($2<=5) print $0}' < file

Thank you very much for ur quick reply.

Vijay