ibec_DecodeDate

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

Syntax

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

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.

Simple example

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

More examples

<< ibec_EncodeDate | IBEBlock | ibec_reg_Open >>