B
B
b_rabbid2015-08-30 20:46:54
Parsing
b_rabbid, 2015-08-30 20:46:54

Date.parse does not work in Firefox and IE, while everything works in Chrome and Opera, why is that?

We define the time_ms variable as the difference between two dates. So, in Chrome and Opera, such an entry works, and in Firefox and IE it returns NaN at this stage.
time: '2015-08-30T8:32:00',
timezone: '417+06:00',
var time_ms = Date.parse(object.time+'.'+object.timezone) - Date.parse(now+'. '+object.timezone);
is there a universal date view for all browsers? or what conditions should be prescribed for donkeys and foxes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vegarulez, 2015-10-13
@vegarulez

How to make Date.parse work?
Helped me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question