Patel Akash

Patel Akash

  • NA
  • 286
  • 7.1k

Get datetime between start and end datetime

Sep 11 2019 12:36 AM
 Start_Date    End_Date
2019-09-10 17:48:00.000  
2019-09-10 17:00:00.000
2019-09-10 17:30:00.000
2019-09-11 08:00:00.000
2019-09-11 08:30:00.000
2019-09-11 12:00:00.000
2019-09-11 12:30:00.000
2019-09-11 12:15:00.000
2019-09-10 18:00:00.000
2019-09-10 17:45:00.000
2019-09-10 18:00:00.000
2019-09-11 09:30:00.000
2019-09-11 09:30:00.000
2019-09-11 13:00:00.000
2019-09-11 13:15:00.000
2019-09-11 13:15:00.000
 
If i pass Start_Date and End_Date in Query
for e.g Start_Date =  '2019-09-11 12:00.000' and End_Date='2019-09-11 13:15.000'
 
Expected Result:
 
 Start_Date End_date
2019-09-11 12:00:00.000
2019-09-11 12:30:00.000
2019-09-11 12:15:00.000
2019-09-11 13:00:00.000
2019-09-11 13:15:00.000
2019-09-11 13:15:00.000

Answers (2)