IN VB.Net, you can use the DateDiff method to calculate the difference between 2 days. How do you do this in C#? I want to find the number of days between 2 dates. I there a 0 days, then I want to know the number of hours and minutes between 2 dates
I see there is a method for the DateTime object which allows me to subtract, but it requires a TimeSpan object, andI am not quite shure how to create this correctly. I presume it goes something like this..
daysLeft = _PM_Cutoff_Date.Subtract(new TimeSpan( ?, ?, ?, ?) where ? = int of Days, hours, minutes and seconds
Can someone clear up my confusion on how to do this calculation
Thanks a bunch!!