RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.TwoDigitYearCenturyWindow Variable

Determines what century is added to two-digit years when string dates are converted to numeric dates.

Pascal
TwoDigitYearCenturyWindow: Word = 50;
C++
Word TwoDigitYearCenturyWindow = 50;

The value of TwoDigitYearCenturyWindow, if it is nonzero, is subtracted from the current year to calculate the floating "pivot" prior to which two-digit years are interpreted as falling in the next century. The default value is 50. The table below shows some examples. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!