Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18059
| From | Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: FAQ Topic - How can I create a Date object from a String? (2013-01-10) |
| Date | 2013-01-10 19:43 +0000 |
| Organization | Home |
| Message-ID | <ujfdz1Ninx7QFwVd@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | <50ee0489$0$293$14726298@news.sunsite.dk> |
In comp.lang.javascript message <50ee0489$0$293$14726298@news.sunsite.dk
>, Thu, 10 Jan 2013 00:00:03, FAQ server <javascript@dotinternet.be>
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 <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
FAQ Topic - How can I create a Date object from a String? (2013-01-10) "FAQ server" <javascript@dotinternet.be> - 2013-01-10 00:00 +0000 Re: FAQ Topic - How can I create a Date object from a String? (2013-01-10) Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-01-10 19:43 +0000
csiph-web