The encode activity provides the option to create a date time variable and set the values with integers.
Uses System.DateUtils.EncodeDateTime
Activity properties
begin var Date: TDateTime; var Year := 2024; var Month := 01; var Day := 01; var Hour := 00; var Minute := 00; var Second := 00; var MilliSecond := 0; Date := EncodeDateTime(Year, Month, Day, Hour, Minute, Second, MilliSecond); end; |
Resulting code
The input fields are optional with the limit that one must be filled.
If no input is given, 0 is the default value.