title: sql case statement with date values
body: <p>I have a date column in my database table.</p>
  
  <pre><code>SELECT sDestructionDate FROM tblDocumentHeader
  </code></pre>
  
  <p>below is the result of above query</p>
  
  <p><img src="https://i.stack.imgur.com/bT676.jpg" alt="enter image description here"></p>
  
  <p>I need to print empty for the date value '1991-01-01'</p>
  
  <p>I expect a result set something like below.</p>
  
  <p><img src="https://i.stack.imgur.com/BHlZ9.jpg" alt="enter image description here"></p>
  
  <p>I tried the below query but it still print that '1991-01-01' date.</p>
  
  <pre><code>SELECT CASE CONVERT(date,h.sDestructionDate,103) 
  WHEN '01/01/1991' 
  THEN '' 
  ELSE CONVERT(date,h.sDestructionDate,103) END 
  AS 'sDestructionDate'
  FROM tblDocumentHeader h
  </code></pre>
  
  <p>I don't want to convert the result into varchar value. below query does gives me the result but i need to return it from date format.</p>
  
  <pre><code>SELECT CASE CONVERT(varchar,h.sDestructionDate,103) 
  WHEN '01/01/1991' 
  THEN '' 
  ELSE convert(varchar,h.sDestructionDate,103) END 
  AS 'sDestructionDate'
  FROM tblDocumentHeader h
  </code></pre>