Extending JavaScript's Date.parse to allow for DD/MM/YYYY (non-US formatted dates)?

前端 未结 1 1415
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-18 03:17

I\'ve come up with this solution to extending JavaScript\'s Date.parse function to allow for dates formatted in DD/MM/YYYY (rather then the American standard [a

1条回答
  •  囚心锁ツ
    2020-12-18 03:58

    I would use Datejs. You can directly load the version appropriate for a given ISO language code (e.g. date-en-CA.js or date-en-GB.js). Only the capitalization is different.

    0 讨论(0)
提交回复
热议问题