Date Difference
C#
3
Posts
3
Posters
0
Views
1
Watching
-
A dummy question, How I could make a date difference, like VB's DateDiff???. There is a Compare method from DateTime, but don't allow specific the type of data, like years or months. Anyone know how?? ---- hxxbin
-
A dummy question, How I could make a date difference, like VB's DateDiff???. There is a Compare method from DateTime, but don't allow specific the type of data, like years or months. Anyone know how?? ---- hxxbin
Peforming an operation on two
DateTime
values (like add and subtract) yield aTimeSpan
, as well as using methods like Mazdak mentioned. See the documentation forTimeSpan
in the .NET Framework SDK for more information.Microsoft MVP, Visual C# My Articles