Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Jscript for date suffix

function dateOrdinal(d) {
    return d+(31==d||21==d||1==d?"st":22==d||2==d?"nd":23==d||3==d?"rd":"th")
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Jscript #date #suffix
ADD COMMENT
Topic
Name
6+6 =