title: How do I get the month and day with leading 0's in SQL? (e.g. 9 => 09)
body: <pre><code>DECLARE @day CHAR(2)
  
  SET @day = DATEPART(DAY, GETDATE())
  
  PRINT @day
  </code></pre>
  
  <p>If today was the 9th of December, the above would print "9".</p>
  
  <p>I want to print "09". How do I go about doing this?</p>