JRS: In article <v32ne.10421$zb.3278@trndny01>, dated Tue, 31 May 2005
18:30:51, seen in news:comp.lang.javascript, Russ Chinoy
<rchinoy (AT) platinumwebworx (DOT) com> posted :
Quote:
Has anyone ever noticed that getTime() returns the same value for both today
(5/31/2005) and tomorrow (6/1/2005)? |
This is an international newsgroup.
Therefore, it is unwise to give dates in FF format which is only
preferred in one or two countries.
You mean 2005-05-31 and 2005-06-01.
You are, of course, also in error in your claim; while there *may* be
true errors (as distinct from peculiar behaviours) remaining in the
javascript date object, it is most unlikely that there could be one in
three well-known browsers relating to the fundamentals of the Gregorian
Calendar.
Comparing dates by comparing the results of getTime is of itself
reliable - though date objects can be compared without explicit getTime
- but there are pitfalls nearby.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.