title: How to create calendar table with end of each month only SQL Server 2017
body: <p>What would be the simplest way to create a calendar table or CTE that would return end of each month date of the year?</p>
  
  <p>Something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Jzw0l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jzw0l.png" alt="enter image description here"></a></p>