Click here to Skip to main content
15,999,596 members
Please Sign up or sign in to vote.
1.40/5 (3 votes)
See more:
between today date and last 2 months,3 months,4months ...in c# windows application
Posted

Have you tried anything at all ? Do you own any books on C# ?

If you subtract one date from another, you get a Timespan representing the time between them.
 
Share this answer
 
If not books, you will find numerous websites explaining the same to you.

For now, this link MSDN should be enough:
DateTime Structure[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900