Field-Map Scripting

4.1.12.4 DecodeDate

DecodeDate procedure


Prototype:

procedure DecodeDate (const Date : double, out Year, Month, Day : word);

Description:

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

Syntax:

DecodeDate(Date, Year, Month, Day);


Part

Description


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







See also:                

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