title: AngularJS: Get dates with suffix rd, th and st
body: <p>How to format Date in Angular Java script? </p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>&lt;p id="summaryHeader"&gt;Calendar of {{dt}}&lt;/p&gt;
  </code></pre>
  
  <p>I get the value as 
  <code>2014-06-05T12:38:42.744Z</code></p>
  
  <p>I tried this </p>
  
  <pre><code>&lt;p id="summaryHeader"&gt;Calendar of {{dt|date:'MMMM dd'}}&lt;/p&gt;
  </code></pre>
  
  <p>which gives me </p>
  
  <p><code>Calendar of June 05</code></p>
  
  <p>I need it as <code>Calendar of June 05th</code> or July 2nd and so on.. the rear <code>rd,th,st</code> is what I am looking for.</p>
  
  <p><a href="https://docs.angularjs.org/api/ng/filter/date">Anuglar Docs</a> are good but don't specify this formatting.</p>