Hello Folks , I'm triyin to construct a new date to use it later for an if, the set today = new Date or set today = D[now] works fine,but the set new date ( today .getDate () + ( mills_in_a_day ) shows the epoch time january 1 1970. Is there sometinh missing?
If your question is why getTime() returns a value pertaining to the date, then it's because there is no spoon. No, but seriously, there is no Date and Time, only milliseconds since epoch. We just read the amount of millis as a date and time, which each are further broken down into year, month, day and hours, minutes, seconds, respectively.
Also, it looks like I had a typo in that old example, and I'll go fix it now, to be getTime().