Wrote a countdown, the original code is as follows:
Date ();
Date ("2016-6-7");
TIMESG = Times.gettime ();
TIMEOUTG = Timesout.gettime ();
Timescha = parsefloat (TIMEOUTG)-parsefloat (TIMESG);
Math. Floor (TIMESCHA/1000/60/60/24);
timesmins = timescha% (24*3600*1000);
timeshouer=Math. Floor (timesmins/(3600*1000))
$('. Time-day '). Text (days);
$ ('. Time-hour '). Text (Timeshouer);
Results in Google Browser is no problem to see, but in the on-line debugging, found in IE browser show nan, swollen wood office.
Went online to find a half-day, all kinds of parsefloat, no use. So I try.
The solution is simple:
Date ();
Date ("2016/6/7 00:00:00");
TIMESG = Times.gettime ();
TIMEOUTG = Timesout.gettime ();
Timescha = parsefloat (TIMEOUTG)-parsefloat (TIMESG);
Math. Floor (TIMESCHA/1000/60/60/24);
timesmins = timescha% (24*3600*1000);
timeshouer=Math. Floor (timesmins/(3600*1000))
$('. Time-day '). Text (days);
$ ('. Time-hour '). Text (Timeshouer);
is actually the format of the date from 2007-02-02 into 2007/02/02 is so simple ~ ~ ~ ~