Form Date Picker Issue (Year 1943)

I am using a form that has a datetime component where the user can enter in a date. Most of the time, it works fine. However, when the date 01/01/1943 is entered in, it returns 12/31/1942. I’ve tried this same date but a different year and it works just fine. For example, 01/01/1999 returns the correct date. There is something about the year 1943 that causes dates to be subtracted by one. I’ve tried a lot of different dates, but this seems to happen for dates entered roughly around December 1942 and April 1943. May 1, 1943 works just fine as an example.

Is there any explanation for this?

Packages used:
UiPath.Form.Activities 23.10.6
UiPath.System.Activities 24.10.4

HI,

In my environment (Studio 23.10.7 + Form Activities package 23.10.6), it works with no problem. Can you share your workflow, if possible?

Sample
Sample20240729-3.zip (3.2 KB)

Regards,

HI,

I tried it several times and found it returns not local time but UTC datetime for some reason, sometimes. (it does not seem to depend on input date time)

So, as a workaround how about the following code if you need just date?

Sample
Sample20240729-3 (2).zip (3.4 KB)

Regards,