Icon EncodeDate

Unit: Internal

Available In: Client and Server Applications

function EncodeDate(Year: Integer; Month: Integer; Day: Integer;
                    UTC: Boolean=False): Integer

The EncodeDate function returns the local or UTC date from the year, month, and day input parameters. The return value is a DateTime value.

Examples

X := DateToStr(EncodeDate(2012,2,13));  // X is '2/13/2012'
Image