I have a table with two columns startdate
and enddate
(of type DATETIME
). When I pass two parameters that is start and end date, I need to display all the dates between the two dates from two columns.
i.e.. I have this table:
startdate enddate
---------------------
6/1/2012 6/7/2012
6/5/2012 6/9/2012
6/10/2012 6/15/2012
When I pass two dates like 6/3/2012
and 6/20/2012
, I want to display this result set:
6/5/2012
6/7/2012
6/9/2012
6/10/2012
6/15/2012
Thanks in advance