Adding “st, nd, rd, th” to jquery datepicker

后端 未结 8 537
臣服心动
臣服心动 2020-12-11 15:44

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         


        
8条回答
  •  醉酒成梦
    2020-12-11 16:28

    According to grammar rules, you should not add "th", "nd", "rd", and "st" to dates when displaying it like "March 3" or "April 31, 2003". You only use these when you are displaying the "6th of March" or the "23rd of June".

    See this for more information.

提交回复
热议问题