Field-Map Scripting

4.1.12.5 DecodeDateExt

DecodeDateExt function


Prototype:

function DecodeDateExt (const Date : variant, out Year, Month, Day : integer) : boolean;

Description:

Splits the variant expression of date into integer attributes of year, month and day.

Syntax:

variable := DecodeDateExt(Date, Year, Month, Day);


Part

Description


variable

variable declared as boolean


Date

Variable declared as variant containing date expression, use Date property if you are interested in current date


Year

Output variable declared as integer representing the year


Month

Output variable declared as integer representing the month


Day

Output variable declared as integer representing the day




Return value:

True/false




See also:                

Day; Month; Year; DecodeDate; DecodeDateExt; DecodeDateTimeExt; YearOf; MonthOf; DayOf; DaysInAMonth; StrToDateTime; DateToStr; DateTimeAsString; FormatElapsedTime; Date; Now; IncMonth; IncDay;