To fix this issue, you can try the following solutions:
Use the correct datetime format: Ensure that the datetime value is being formatted using the correct format. The default format for datetime values in UiPath is “yyyy-MM-ddTHH:mm:ss”, which represents the year, month, day, hour, minute, and second in a standard ISO-8601 format. If you are using a different format, you can specify it using the “format” argument in the datetime picker’s “ToString” method.
Use the correct time zone: Ensure that the datetime value is being interpreted using the correct time zone. By default, datetime values in UiPath are interpreted using the local time zone of the machine running the Automation. If you are using a different time zone, you can specify it using the “timeZone” argument in the datetime picker’s “ToString” method.