How to find difference fron 2 dates
Loading
How to find difference fron 2 dates
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MohantyPosted Jul 14, 2023, 5:18 AM
Prasad RaveendranPosted Jul 14, 2023, 1:33 AM
The
DateTime.Subtractmethod is available in all versions of C#. It is a method provided by theDateTimestructure in the .NET Framework, and it has been available since the earliest versions of .NET.You can use the
DateTime.Subtractmethod to calculate the difference between two dates in any version of C# without any compatibility issues.Lokesh VarmanPosted Jul 13, 2023, 5:08 PM
Hope this helps !