On Tue, Sep 2, 2008 at 11:37 AM, Laurie Smith <[EMAIL PROTECTED]>wrote:
> >On Tue, Sep 2, 2008 at 11:29 AM, Laurie Smith <[EMAIL PROTECTED] > >wrote: > > > > > > > >but... but... some months have a different number of days than others :) > > > >if that's your desired result, you'll really need to capture a start date > >(and an end date) > > > >-- > >A byte walks into a bar and orders a pint. Bartender asks him "What's > >wrong?" Byte says "Parity error." Bartender nods and says "Yeah, I thought > >you looked a bit off." > > > > For my example of: What I am trying to do is for example, when if a user > selects > 2 years 2 months 2 days then I need to convert those values to days. Do you > recommend using the DateDiff? > which 2 months tho? if it's february and march, those will have different # of days than, say july and august. and february and march of a leap year will have a different # of days than february and march of a non-leap year. what's the context in which the user is selecting these values? if you need a dateDiff() then ideally you need an actual start date and an actual end date. -- A byte walks into a bar and orders a pint. Bartender asks him "What's wrong?" Byte says "Parity error." Bartender nods and says "Yeah, I thought you looked a bit off." ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311931 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

