Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 153
  • Last Modified:

date problem

Hello all
I have a date as a string in the format of "09/08/2007" for example. What is the best way to compare that to todays date and see if it is older than 3 years ago

Many thanks
0
bostonste
Asked:
bostonste
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
you should find it all here:
http://articles.techrepublic.com.com/5100-10878_11-6089546.html

the interesting part is the AddYears(-3) method you will want on the DateTime.Now...
0
 
bostonsteAuthor Commented:
Many thanks, i figured it out from there
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now