How can I add st,nd,rd,th to date format.. i.e. November 19th, or December 2nd, etc.
Currently, I have following code
$( \"#datepicker\" ).datepi
Chris West has a pretty short and sweet definition for a function which generates ordinals for all integers. On this page he even shows how you can easily use his function to add ordinals to all numbers within a string.