Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: Dr J R Stockton Newsgroups: comp.lang.javascript Subject: Re: FAQ Topic - How can I create a Date object from a String? (2013-01-10) Date: Thu, 10 Jan 2013 19:43:30 +0000 Organization: Home Lines: 17 Message-ID: References: <50ee0489$0$293$14726298@news.sunsite.dk> NNTP-Posting-Host: JfH6RRPWQh8XzArFI0xgxA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain;charset=us-ascii X-Complaints-To: abuse@aioe.org User-Agent: Turnpike/6.05-S () X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.javascript:18059 In comp.lang.javascript message <50ee0489$0$293$14726298@news.sunsite.dk >, Thu, 10 Jan 2013 00:00:03, FAQ server posted: > >An Extended ISO 8601 local Date format `YYYY-MM-DD` can be parsed to a >Date with the following:- If the date string St is known to be valid YYYY-MM-DD, D= new Date(St.replace(/-/g, "/")) will work. -- (c) John Stockton, nr London, UK. E-mail, see Home Page. Turnpike v6.05. Website - w. FAQish topics, links, acronyms PAS EXE etc. : - see in 00index.htm Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.