Skip to main content
added 160 characters in body
Source Link
Bruce Xu
  • 363
  • 1
  • 4
  • 11

In addition to using vanilla javascript, you can also use many libraries to get more functions.

like date-fns, moment.js etc

For example, use moment.js you can convert date to milliseconds by moment('25-12-2017', 'DD-MM-YYYY').valueOf(), more elegant and powerful than vanilla javascript.

In addition to using vanilla javascript, you can also use many libraries to get more functions.

like date-fns, moment.js etc

In addition to using vanilla javascript, you can also use many libraries to get more functions.

like date-fns, moment.js etc

For example, use moment.js you can convert date to milliseconds by moment('25-12-2017', 'DD-MM-YYYY').valueOf(), more elegant and powerful than vanilla javascript.

Source Link
Bruce Xu
  • 363
  • 1
  • 4
  • 11

In addition to using vanilla javascript, you can also use many libraries to get more functions.

like date-fns, moment.js etc