Posted by Grant Foraker on June 20, 2011 at 15:39:12: Uploaded files: 3
A few years ago, I upgraded my old Date Validation logic with ...
LET ZDYCT = DATE2NUM(Z1$,0)
LET YYMMDD$ = NUM2DATE(ZDYCT,2)
A customer called to day and said he was entering dates in the format "06/ /2011" (two blanks) and the date was being returned from the edit routine as "06/20/2011". I also tried "05/ /1999" and the date returned was "05/19/1999".
TESTD2N.IBS demonstates problem. See DATE2NUM.JPG.
While testing I made a typo in ...
@(0,6);'DAY OF CENTURY ';ZDYCT;_
by leaving out the ";" before ZDYCT. This caused a COSH error. See COSH.JPG. No compiler error either.
Comet16 and all the latest.
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.