title: Getting the number ordinal with Moment.js
body: <p>Is it possible to get a number's ordinal with Moment.js? For example if I pass in the number 7 and Momentjs would return '7th'</p>
  
  <p>So far I have tried all these but none have worked</p>
  
  <pre><code>console.log(moment("12", "D Do")); // returns n {_isAMomentObject: true, _i: "12", _f: "D Do", _isUTC: false, _pf: Object…}
                  console.log(moment("3", "D Do")); // returns n {_isAMomentObject: true, _i: "3", _f: "D Do", _isUTC: false, _pf: Object…}
                  console.log(moment(3).format("D Do")); // returns '1 1st'
                  console.log(moment('3').format("D Do")); // returns '1 1st'
                  console.log(moment().day('3').format("Do")); // returns '9th'
                  console.log(moment().day(3).format("D Do")); // returns '9 9th'
  </code></pre>
  
  <p>EDIT: I should have mentioned that I am trying to process a date. So I get the date in this format DD-MM-YYYY. So if the date is 07-12-2015, I want to display it as 7th. </p>