D
Dr John Stockton
JRS: In article <[email protected]>, dated Tue, 15 Mar 2005
20:00:09, seen in Matt Kruse
Unfortunately, the Americans think that the word "foreign" is spelt
i n t e r n a t i o n a l .
The international formats are yyyy-mm-dd and certain others derived from
that, such as yyyymmdd; they are given by the internationally-agreed
standard ISO 8601.
Those that followed were multi-national formats.
There is always a risk with code that is willing to accept either, say,
25/12/2004 or 12/25/2004 may be employed without testing that it gives
the right result for days before the 13th of the month with D!=M.
Never make rash assumptions; there may not *be* server side processing;
there may be nothing sent from the reader's copy of a Web page back over
the Internet, or the javascript may be executed by WSH on the machine
where it resides.
Final validation should be on a machine under the control of those who
use the values in question. Validation at data entry may well be
helpful to those who enter data. That, I think, covers everything.
20:00:09, seen in Matt Kruse
Martin Herrman wrote:
// This function takes a date string and tries to match it to a
// number of possible date formats to get the value. It will try to
// match against the following international formats, in this order:
Unfortunately, the Americans think that the word "foreign" is spelt
i n t e r n a t i o n a l .
The international formats are yyyy-mm-dd and certain others derived from
that, such as yyyymmdd; they are given by the internationally-agreed
standard ISO 8601.
Those that followed were multi-national formats.
There is always a risk with code that is willing to accept either, say,
25/12/2004 or 12/25/2004 may be employed without testing that it gives
the right result for days before the 13th of the month with D!=M.
(2) Always validate on the server-side if your code depends on a certain
format.
Never make rash assumptions; there may not *be* server side processing;
there may be nothing sent from the reader's copy of a Web page back over
the Internet, or the javascript may be executed by WSH on the machine
where it resides.
Final validation should be on a machine under the control of those who
use the values in question. Validation at data entry may well be
helpful to those who enter data. That, I think, covers everything.