The Y2K scripts are for A5 version 1.02 and will convert 2 digit dates to 4 digit dates in either (a) the nearest year ±50, or (b) the current century. The conversion choice is up to the programmer - see the notes in the scripts. (Note: Works thru 9800 for very enduring programs.)
Script "y2k_fix" is to be used in the Can_Write event for date fields and "Func_y2k" is for use with UI_GET_DATE in other scripts.
To use the scripts, cut-and-paste them from the included text files.
TO USE THESE SCRIPTS: They must be copied to your own database. See the notes in the scripts for more details.
Additional 'fixes' included in these scripts:
a date entered as 03/8 (4 chars only) will be converted to 03/08 in the current year.
a single digit can be used to enter years between 00 and 09. 03/08/1 = 03/03/2001.
dates entered as 2/29 that are not in a leap year will be checked to see if you want 3/01 or 2/28.
Alpha's default converts it to 3/1 which can be a problem if you are expecting to get all records
only through the end of February.
AIMS DataCom, Inc. - Custom Database Applications
This site created and maintained by Cal Locklin, CALocklin@chartermi.net, using 1st Page 2000.
Last update: 18-Jan-02
This site may be freely linked to but not duplicated in any fashion without prior written consent.