my agent has the next information as parameters:
year, month, day, hour, minute second. Now I want to transform all these parameters to a date by using
toDate(year, month, hour, minute, second)
But somehow I still get the error that I can only include three things to make a date (see picture below) But I also want to include the time how can I do this?
Asked
Active
Viewed 193 times
2

Aron T.
- 448
- 2
- 7
1 Answers
2
You can use toDate(int, int, int, int, int, int)
(i.e. 6 arguments, not 4) as below:
PS: Learn to use code-complete (Ctrl+space on Windows) so you get these helpful popups yourself :)

Benjamin
- 10,603
- 3
- 16
- 28
-
Stupid mistakes, oops thanks for the answer. – Aron T. Dec 06 '21 at 16:27
-
no probs, happy to help – Benjamin Dec 06 '21 at 17:46