Quantcast
Viewing all articles
Browse latest Browse all 46

Answer by Cheng Chen for Difference in months between two dates

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#.

  1. Add Microsoft.VisualBasic.dll toyour project as a reference
  2. useMicrosoft.VisualBasic.DateAndTime.DateDiff in your code

Viewing all articles
Browse latest Browse all 46

Trending Articles