How to get difference of days between two dates

DateDiff() method or subtract method not working. Can anyone give me a proper solution ?

1 Like

@kkpatel How do you get the two input dates that you want to subtract?

Hi @kkpatel

You can do the DateTime DT3= DT1-Dt2

Ashwin S

We are doing build data table and the date column is in string format.

@kkpatel oK, But in which format of date like is it in dd/MM/yyyy or MM/dd/yyyy?

Kindly have a view on this

Cheers @kkpatel