I want to identify dates prior to a specific date mentioned by user/developer. Say I have a list of dates e.g 17-12-2014,03-01-2015,10-11-2014,02-02-2015,05-03-2015,16-03-2014. I want to show dates prior to 01-01-2015 and after that I want to apply dates prior to 01-01-2015 in another query. Please help on my question.