I tried to do this but it failed
var diffDays1 = (function () {Var oneDay = 24 * 60 * 60 * 1000; // hours * minutes * sec * milliseconds var seconds = new date (new date). GetFullYear () + 1,4,5); First date = new date (); Return Mathematics.Round (Math.Bas ((First Date Gate Time) - Secondend. Get Time ()) / (Single)));}) ();
Wolfam Alpha says that this is 330 days, diffDays1 shows that this is 359. This is probably due to daylight savings or some reasons whether it is a way of calculating the right way of the day without the side of the server. The problem is that you will be based on April '4 April, when April 3rd is in Javascript based on' April ' is. View
var diffDays1 = (function () {var oneDay = 24 * 60 * 60 * 1000; // hours * minutes * seconds * milliseconds var seconds = new date (new date) GetFullYear ( ) + 1,3,5); First date = new date (); Return Mathematics (field (first date time) - Second Date .gettime ()) / (Single));}) ();
Comments
Post a Comment