title: Get current year first month and first day in SQL
body: <p>I have a SP and I want to get the current year and the first day and first month of the year.</p>
  
  <p>For example, for this year : <code>2014-01-01;</code>
  For <code>2015 : 2015-01-01;</code></p>
  
  <p>I tried </p>
  
  <pre><code>@data datetime , @test datetime
  
  SELECT @test = GETDATE()
  set @test = CAST( YEAR(@test)+'-'+'01'+'-'+'01' as char(100))
  set @data = CAST( @test as datetime)
  </code></pre>
  
  <p>But it returns 2016 not 2014 any help?</p>