Hey WebmasterWorld folks! Haven't posted here in a long time!
I have a question that I'm guessing will be pretty easy for most of you to answer, but I've been stuck on it for a while now (even after lots of Google searching).
I have a string representing the date of an item which looks like this:
(2010 is the year, 12 is the month, 31 is the day, the rest is irrelevant).
Now I need to convert this string into a simple number of days ago, relative to today's date.
Just a simple integer - I don't want to switch to weeks or hours or years or anything. Just days.
So my question is, what is the most efficient way of accomplishing this task? It seems to me like it would be fairly simple but I can't seem to figure it out.
Thank you in advance!
PS. I'm not "asking you to do my work for me" - just a suggestion or a link to get me on the right track would be enough! :D