1

I'm having some troubles using moment.js in IE8.

The following code works on IE11, chrome, firefox:

Moment.js in IE8

But in IE8, the data2 variable is no correct (somo properties are NaN) and data3 is correct.

How can I use moment.js in IE8 without using ._d?

amp
  • 11,754
  • 18
  • 77
  • 133

1 Answers1

0

By "data", I think you mean "date". This link might help:

Moment.js transform to date object

But frankly, IE8 has some serious problems. Which you may - or may not - be able to work around.

IMHO...

Community
  • 1
  • 1
FoggyDay
  • 11,962
  • 4
  • 34
  • 48