Field-Map Scripting

4.1.12.6 DecodeDateTimeExt

DecodeDateTimeExt function


Prototype:

function DecodeDateTimeExt (const DateTime : variant, out Year, Month, Day, Hour, Minute, Second : integer) : boolean;

Description:

Splits the variant expression of date and time into integer attributes of year, month, day, hour, minute and second.

Syntax:

variable := DecodeDateTimeExt(Date, Year, Month, Day, Hour, Minute, Second);


Part

Description


variable

variable declared as boolean


Date

Variable declared as variant containing date and time expression, use Now 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


Hour

Output variable declared as integer representing the hour


Minute

Output variable declared as integer representing the minute


Second

Output variable declared as integer representing the second




Return value:

True/false




See also:                

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