Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: Christoph Becker Newsgroups: comp.lang.javascript Subject: Re: silly question on Date value evaluation or comparison Date: Wed, 26 Sep 2012 02:36:35 +0200 Organization: Aioe.org NNTP Server Lines: 16 Message-ID: References: NNTP-Posting-Host: NsT5aKEgsMn4GGdtq+X1Aw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.javascript:16152 justaguy wrote: > I've entered the value of "9/25/2012" (of course without quotes) for > the dateField entry, but the case switch returns to default, so, I > guess 9/25/2012 is not the value for a date, then what? See : | The JavaScript date is measured in milliseconds since midnight | 01 January, 1970 UTC. BTW: you should terminate your case clauses with break, if they are not otherwise terminated, to avoid a fall-through. -- Christoph M. Becker