Get the number of days between two dates

How to calculate the number of days between two dates?

@Royal

Welcome to our uipath community.

Do you want to calculate no. of business days ? If yes then check below thread.

1 Like

You can use the following expression -

intTotalDays = (EndDate - StartDate).TotalDays

EndDate, StartDate are DateTime variables.

Regards,
Karthik Byggari

1 Like

Hi @lakshman

I just want number of days. Not only working days.

1 Like

@Royal

Then you can try above expression mentioned by @KarthikByggari

1 Like

Okay.

1 Like

Hi @KarthikByggari
Your solution is working. Thank you.

1 Like

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