Hello,
I am getting a date as a string that looks like dd.MM.yyyy
How can find the number of days between two dates in that format?
Thanks
Hello,
I am getting a date as a string that looks like dd.MM.yyyy
How can find the number of days between two dates in that format?
Thanks
Hi,
I suppose you can get it using the following.
datetime1 = DateTime.ParseExact(strData1,"dd.MM.yyyy",nothing)
datetime2 = DateTime.ParseExact(strData2,"dd.MM.yyyy",nothing)
intDays=(datetime1-datetime2).Days
Regards,