From: Garrett Smith on
S.T. wrote:
> Well, we're wildly off topic now but I'm assuming most of the newsgroup
> has already figured out whether this leg of the post interests them or
> not. I'd 'OT' the subject line but really, don't see this going on longer.
>
*That* is off topic top posting.

> On 3/18/2010 11:28 AM, David Mark wrote:

[...]

> Asking someone to then shift focus to a monitor and enter that $100 rate
> in the appropriate location when the dates are given as:
>
> 2009-12-04 2009-12-05
> 2009-12-06 2009-12-10
> 2009-12-11 2009-12-12
>
> .. is ridiculous. It's pleading for data entry errors. No one in their
> right mind is going to invert the date format between the data
> collection and the data entry.
>

It sounds like that data could be parsed by a program.

A simple regex would match a mm/dd/yy as (\d{1,2})\/(\d{1,2})\/(\d{1,4})

Then you could mix two of those with the "to" in the middle:

to:
\s+-\s+

mix:
(\d{1,2})\/(\d{1,2})\/(\d{1,4})\s+-\s+(\d{1,2})\/(\d{1,2})\/(\d{1,4})

The Datepicker widget with the perverse keyboard a11y seems to be
totally irrelevant to copy paste.

> The appropriate layout, given the working scenario:
> http://i41.tinypic.com/9t26vc.png
>
> The "your frickin nuts if you expect me to do this ~25,000 times" layout:
> http://i42.tinypic.com/vqk6qt.png

So you want date parse routine that accepts mm/dd/yy or mm/dd/yyyy and
converts that to a standard format?
--
Garrett
comp.lang.javascript FAQ: http://jibbering.com/faq/
From: Dr J R Stockton on
In comp.lang.javascript message <y4Odnf8lx-JV9j7WnZ2dnUVZ_v2dnZ2d(a)gigane
ws.com>, Fri, 19 Mar 2010 08:19:20, kangax <kangax(a)gmail.com> posted:
>On 3/18/10 4:53 PM, Dr J R Stockton wrote:
>> In comp.lang.javascript message<D-WdnbdigdoQSj3WnZ2dnUVZ_oadnZ2d(a)gigane
>> ws.com>, Wed, 17 Mar 2010 09:22:21, kangax<kangax(a)gmail.com> posted:
>>
>>> I was testing preview of IE9 on Vista yesterday
>>
>> With those, could you try
>> <URL:http://www.merlyn.demon.co.uk/js-datex.htm#Auto>, where the
>> question is whether the computed yellow column agrees with that headed
>> "IE 6/7/8"? If line #3 differs, see also the following section "Values
>> from getYear()".
>
>The difference between IE6/7/8 and 9 is in these fields:
>
>!!new Date().toISOString // was false, now true
>toISOString() (see source) // was false, now 12345-06-07T11:22:33.000Z
>(0.007).toFixed(2) // was 0, now 1
>(0.5).toFixed(0) // was 0, now 1
>
>So besides ES5 `Date.prototype.toISOString`, we finally have compliant
>`Number.prototype.toFixed`.

Provided that no other errors in it are unfixed, and no new ones added.

>> Does<URL:http://www.merlyn.demon.co.uk/$lag-pts.htm> fail nicely?
>
>Preview doesn't support canvas, although IIRC, IE team claims that work
>is being done in that area.

Yes; but the question was does it fail *nicely*.


Also, <URL:http://www.merlyn.demon.co.uk/js-maths.htm#Ierr> shows errors
(factor of 10) in IE8 with long integer to string.



In <URL:http://www.merlyn.demon.co.uk/js-date0.htm#TDO>, go to "Date
Object String Output Methods" - certain other questions become obvious
by the blankness of the new column. What does the yellow above
indicate?

Thanks. Pages updated.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
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 estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
From: kangax on
On 3/20/10 3:00 PM, Dr J R Stockton wrote:
[...]
>
> Also,<URL:http://www.merlyn.demon.co.uk/js-maths.htm#Ierr> shows errors
> (factor of 10) in IE8 with long integer to string.

Couldn't open this. Page was blank.

>
>
>
> In<URL:http://www.merlyn.demon.co.uk/js-date0.htm#TDO>, go to "Date
> Object String Output Methods" - certain other questions become obvious
> by the blankness of the new column. What does the yellow above
> indicate?

All the same as IE8, except `toISOString` (which is missing in IE8 but
present in IE9).

--
kangax
From: Dr J R Stockton on
In comp.lang.javascript message <CdGdneHsYNhp4TvWnZ2dnUVZ_sidnZ2d(a)gigane
ws.com>, Sun, 21 Mar 2010 16:09:24, kangax <kangax(a)gmail.com> posted:
>On 3/20/10 3:00 PM, Dr J R Stockton wrote:
>[...]
>>
>> Also,<URL:http://www.merlyn.demon.co.uk/js-maths.htm#Ierr> shows errors
>> (factor of 10) in IE8 with long integer to string.
>
>Couldn't open this. Page was blank.

It should work; it does for me, clicking the link in the previous
article. It will want CSS & JS files, not big, and executes code while
loading, but only briefly. Page last changed about Feb 21. Do others
see it?



>> In<URL:http://www.merlyn.demon.co.uk/js-date0.htm#TDO>, go to "Date
>> Object String Output Methods" - certain other questions become obvious
>> by the blankness of the new column. What does the yellow above
>> indicate?
>
>All the same as IE8, except `toISOString` (which is missing in IE8 but
>present in IE9).

As expected, but it is better not to guess. Updated. Thanks.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (RFCs 5536/7)
Do not Mail News to me. Before a reply, quote with ">" or "> " (RFCs 5536/7)