Solved

date problem

Posted on 2008-06-24
2
145 Views
Last Modified: 2010-04-23
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
Comment
Question by:bostonste
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 21858385
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
 

Author Closing Comment

by:bostonste
ID: 31470278
Many thanks, i figured it out from there
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question