in reply to Numeric Date Validation
valid formats per your post
yyyymmdd
yyyyddmm
yymmdd
yyddmm
ddmmyyyy
mmddyyyy
ddmmyy
mmddyy
date range Jan 01 1900 through Jan 01 2005 (assume this will be used for a while). What data can we eliminate as invalid.
take data in couplets.
if all columns are between 01 and 12 there is no identifying the data as month day or year (obviously a 6 digit date)
if a column contains between 32 and 99 or 00 it is the year - and if date is 8 digits long preceding 2 digits are century.
Having identified the year column, any other column containing 13-31 are days.
So having wandered about a bit, my conclusion IMHO is that this type of "edit" returns no value in a large percent of the time because while a format may be found as having violated none of the rules, we still have no idea what date was intended.
Valid and usable data are two different animals, just because the data passes all the tests we can think of, doesn't mean it is fit for the use we want to put it to.
Good luck!
dageek
|
|---|