what is your datatype of startime, endtime, i guess it of type date and not varchar
if its date type, then you need not to use to_date
simply starttime>'14-feb-2012 01:00:00 am' will work
urtrivedi
Posting Virtuoso
1,714 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24