If you're looking for solution to "produce" some portion of data having two dates as input parameters, you may be interested in
CTE[
^].
DECLARE @Start_Date DATETIME ='2016-06-03 13:46:25.370'
DECLARE @End_Date DATETIME ='2016-06-05 13:46:25.370'
;WITH MyDates AS
(
SELECT @Start_Date AS MyDate
UNION ALL
SELECT DATEADD(DD,1, MyDate) AS MyDate
FROM MyDates
WHERE DATEADD(DD,1, MyDate)<=@End_Date
)
SELECT *
FROM MyDates
Result:
MyDate
2016-06-03 13:46:25.370
2016-06-04 13:46:25.370
2016-06-05 13:46:25.370