I'm having trouble converting VB.Net to C#.Net. There is DateDiff() function in the code, and I'm having trouble to find the equivalent function in C#. My code in VB is below:
'If the differnce between Now and the files header date >1 (day,week or year) then
If DateDiff(sDateInterval, dFileDate, Now) >= 1 Then
Return True 'File over write is necessary
Else
Return False 'File over write is not necessary
End If