Well you're going to need to do it in parts, right, so given the dates
in your example,
1/1/2007 - 2/9/2008 returns 1 year, 1 month & 8 days
So ...
startdate = "1/1/2007";
enddate = "2/9/2008";
days = datediff("d",startdate,enddate);
years = int(days / 365);
months = int(days / 30) - (12 * years);
days = days mod 30;
should get you started.
hth,
ike
--
s. isaac dealey ^ new epoch
isn't it time for a change?
ph: 503.236.3691
http://onTap.riaforge.org/blog
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298662
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4