title: Powershell get-date in 1st,2nd,2rd,4th Formats
body: <p>I am trying to format a <code>date</code> in PowerShell as <code>DayOfWeek Month Day(st|nd|rd|th) year</code> format.</p>
  
  <pre><code>(Get-Date).AddDays(+1).ToString('D')
  </code></pre>
  
  <p>The output is "Tuesday, July 05, 2016"
  but need it in this format: <strong>Tuesday July 5th 2016</strong></p>
  
  <pre><code>if date(Get-Date) % 100 IN (11, 12, 13) THEN 'th'
      if (Get-Date) % 10 = 1 THEN 'st'
      if (Get-Date) % 10 = 2 THEN 'nd'
      if (Get-Date) % 10 = 3 THEN 'rd'
  </code></pre>