If I have an array of dates and some input date. For example I have 10 dates in my array and user enters another date. I need to find the closest previous date from my input date. For example if I have an array of these 3 dates (10-dec-2007,15-dec-2007,16-dec-2007 etc) and user enters 14-dec-2007. So my closest date would be 10-dec-2007. How to accomplish this with C#. Just to give little bit more info, I am total programmer beginner and going through some tutorials. Please if somebody can help I would really appreciate it. If not thanks again for looking into my post.