meta data for this page
  •  

ibec_DecodeDate

Returns Year, Month, and Day values for a DateTime value.

Description

The ibec_DecodeDate breaks the value specified as the Date parameter into Year, Month, and Day values. If the given DateTime value is less than or equal to zero, the year, month, and day return parameters are all set to zero.

Syntax

 function ibec_DecodeDate(Date: TDateTime; var Year, Month, Day: Word);

Simple Example

 execute ibeblock
 as
 begin
   ibec_DecodeDate(ibec_Now, iYear, iMonth, iDay);
   ibec_ShowMessage(iYear || ' ' || iMonth || ' ' || iDay);
 end

More Examples