Monaca's iPhone Debugger Can't Handle

Asked 1 years ago, Updated 1 years ago, 26 views

Good evening, I can't handle the time with monaca's iPhone debugger.
Currently

<input type="date"> and <input type="time">

You are trying to get the value of to be calculated.
I think it would be good to put the obtained value in the date and have it calculated, but the time part (time part, 00:00)
cannot be handled by the new Date.
Preview on pc

var test = new Date ("2015-07-04 12:00");
vartest2 = new Date ("2015-07-04 11:00");
varkekka=test-test2

It still works, but if it's an iPhone debugger, it's NaN.

var time = new Date ("11:00");
console.log(time)
This will still be NaN

What should I do? Thank you.

javascript

2022-09-30 19:17

1 Answers

I'm sorry, I solved myself, I'm ashamed to say that I didn't use the new Date() to enter the date and time.Currently displayed in debugger
Maybe I'm tired.Excuse me.


2022-09-30 19:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.