Convert date to specific format in javascript?

前端 未结 4 1949
挽巷
挽巷 2020-12-11 07:18

Hi i want to convert the current date to a format as follows in javascript: Apr 12, 2011 06:42:03.

Any suggestions?????

4条回答
  •  天命终不由人
    2020-12-11 07:37

    You may be interested in http://www.datejs.com/


    thanks for the comments guys, I should of really linked more directly to the formatting options.

    http://code.google.com/p/datejs/wiki/FormatSpecifiers

提交回复
热议问题