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
Does this help?
do = day + ((20 - day >= 0) ? "th" : ["st","nd","rd"][(day % 10) - 1] || "th"); console.log(do);