A daySuffix method has been added to the Date object. Any date object will be able to return the current day suffix, i.e th, rd, st.
The function can be use like this:
The function can be use like this:
var date = new Date(); date.daySuffix();It could return
th.