Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 568 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 568 Bytes

fix-date

npm version npm download

Solution for yyyy-MM-dd HH:mm:ss is Invalid Date in Safari, IE, etc
No dependencies, min + gzip = 280 B

  1. npm i -S fix-date
  2. import 'fix-date' // or require('fix-date') at the beginning
  3. no more, that's it!

You can also use it with <script src="fix-date.min.js"></script>