Description
PSCCorrectAndEncodeDate returns a TDateTime value from the values specified by the Year, Month, and Day parameters. Valid Day values are 1 through 28, 29, 30, or 31, depending on the Month value. When Day does not belong to the right range it is corrected. Day is rounded to month's days and overplus is added to the Month. Valid Month values are 1 through 12. When Month does not belong to this range it is corrected. Month rounded to months and overplus is added to the Year. The year must be between 1 and 9999. After corrections have been made PSCCorrectAndEncodeDate calls EncodeDate.