Answers for "Jscript for date suffix"

0

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")
};
Posted by: Guest on August-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language