I have a start_date and end_date. I want to get the list of dates in between these two dates. Can anyone help me pointing the mistake in my query.<
start_date
end_date
if its date in 24 hours and start in morning and end in the night should add something like :
declare @Approval_date datetime set @Approval_date =getdate() Approval_date between @Approval_date +' 00:00:00.000' and @Approval_date +' 23:59:59.999'