Dr said:
In comp.lang.javascript message
Mon said:
[...]
If the input format matches an output format, then for most countries it
is only necessary to use a new Date("2006/12/25") output in local
all-numeric as an example.
I was discussing input dates sent to a server, not how to display them
on the client - for that an unambiguous format should be used, such as
using the month name rather than number.
[...]
I have this horrible feeling that, over all but 4 provinces of Iraq, FFF
is presented as the Western norm.
There may be others in which FFF is not the norm.
CSS is not needed (though may be preferred), since <OL type=i> will do.
The type attribute is deprecated, though that may not really matter. I
just think they need to be differentiated from the heading numbering
scheme.
[...]
Well, it seems obvious that the concept "validate" can be expressed in
various ways (test, check spring to mind), and so obvious to repeat the
failed search without it. A search (of 8.1) for "valid" alone proves
that no search including it can succeed. And would the user realise
that validate validation and validating are all possible, and search on
just "valid"?
I hope so. The various forms of "validate" are generally used in
connection with validating form input, I think at least one of them
should be in an FAQ heading. One or more of the others could be
included in the text. I'd like to see an explicit example, and then
perhaps a link to your page on the topic. e.g.:
How do I validate a date?
Date validation is usually performed when validating
user input to a form...
...code example...
You can find information on how
to check or test for valid dates here:
...links...
I think it's very important, Googling for "javascript date validation"
returned the following example at the very top of the list:
<URL:
http://www.smartwebby.com/DHTML/date_validation.asp >
Beware, the author suggests parsing the date string character by
character to test for integers and remove separators. The date
validation routine is also straight from the "never mind the quality,
feel the length" school of programming.
If you've followed the existing FAQ advice, I should have no improvement
to suggest, unless you've made an improvable improvement. My page 4
contains at #ISO about the shortest possible, and at #Genl about the
longest reasonably necessary - perhaps.
My suggestions can be summarised as:
1. The phrase "validate a date" or similar be included in the page
to make finding the answer easier, preferably in a section
dedicated to validating dates
2. At least one code example appear in the page to make the use
of a reasonable date validation routine more likely
3. Explicit links to pages on date validation be included.
I don't have any improvements to the suggested validation routines
themselves, I think that topic has been done to death - which is a sure
sign that whatever is in the FAQ is not sufficient else we'd see
responses like "read FAQ 4.xxx" rather than posted code.