The decode datetime activity provides the possibility to get specific part(s) of a date into integer(s).
Uses System.DateUtils.DecodeDateTime
Activity properties
begin DecodeDateTime(Date, YearVar1, Month1, DayVar1, Hour1, Minute1, Second1, MilliSecond1); YearVar := YearVar1; DayVar := DayVar1; end; |
Resulting code
The output variables are optional integer variables. After the activity the variable will be filled with the corresponding value