I checked the usage of this method in VB.NET via MSDN and it seems that it has a lot of usages. There is no such a built-in method in C#. (Even it's not a good idea) you can call VB's in C#.
- Add
Microsoft.VisualBasic.dll
toyour project as a reference - use
Microsoft.VisualBasic.DateAndTime.DateDiff
in your code