Re: Year 2000 rollover for date fields
Posted in 1996
There is no way to do what you seek to do. The 7.20 ESQL/C library uses the DBCENTURY environment variable to allow users to control way 2-digit years are mapped to 4-digit years. No release of I4GL using the 7.20 ESQL/C (or later) is planned. You will have to enter and display 4-digit years. See also recent discussions of the subject on c.d.i. Yours, Jonathan Leffler (johnl@informix.com) #include <disclaimer.h> }From informix-list-owner@rmy.emory.edu Sat Mar 23 20:57 PST 1996 }From: watjep@ns.netxpress.com (Paul K. Watje) }Subject: Year 2000 rollover for date fields }Date: Wed, 20 Mar 1996 20:31:39 GMT }To: informix-list@rmy.emory.edu }X-Informix-List-To: eu-informix-distr@inflon.informix.com }X-Informix-List-Id: <news.22430> } }Does anyone know how to enter a 2000+ year on a 4GL perform screen }when a 2 digit year format is used? The date fields that use a 2 }digit year(MM/DD/YY) format will not allow you to enter a 2000+ year }entry. The year will be 1900 if you enter 01/01/00 on a date field. }You can enter a 4 digit year with a MM/DD/YYYY format. } }Any helpwill be greatly appreciated. } }Paul Watje }watjep@netxpress.com } } }