How to convert Nullable DateTime to DateTime

Hey guys,
I have two input arguments of type DateTime, I wanted to set it to null or nothing. It was taking default values like 01/01/0001, so i had to set it to Nullable DateTime. Now i want to convert those Nullable DateTime to DateTime. Please help

With regards,
Anit Michael

Hi @Anit,

Welcome to UiPath Forum.

Try using Convert.ToDataTime('YourVariable")

Thank you.

Hi,

If you want to assign date time to nullable date time value. Please refrer the below thread. Thanks.

1 Like

Hi @anit.michael ,

Here is the inline screenshots for my previous post



Null3

Hope this will help you. Thank you.

1 Like

Its working fine. Thank you so much :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.