declare @bDate datetime, @eDate datetime set @bDate='2015-07-01' set @eDate='2015-07-31' select @bDate,@eDate