Solved

date problem

Posted on 2008-06-24
2
143 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now