title: Declaring a datetime variable
body: <p>I was wondering if I could grab a StartDate and an EndDate from a database table instead of assigning the StartDate and EndDate parameters as shown below? I already have the dates in another table. I need to get the data between those two dates.</p>
  
  <pre><code>    DECLARE @StartDate datetime = '1/4/2015' 
      DECLARE @EndDate datetime = '5/20/2015'  
  </code></pre>
  
  <p>Is it possible to do this? </p>