RE: Find a date from a given date

2000-07-13 Thread Philip Arnold - ASP
cfset date1 = createdate(2000,5,16) cfset date2 = dateadd("d",180,date1) cfoutput #dateformat(date1)#br #dateformat(date2)# /cfoutput Or, if you're a moron... cfset date1 = createdate(2000,5,16) cfset date2=date1 cfloop index="i" from=1 to=180 cfset date2=dateAdd("d",1,date1)

Re: Find a date from a given date

2000-07-13 Thread Justin v0.9 MacCarthy
Oh My God... You would think he could have doubled the speed of the loop with step=2. LOL :-) Oh Dear, ~Justin cfset date1 = createdate(2000,5,16) cfset date2=date1 cfloop index="i" from=1 to=180 cfset date2=dateAdd("d",1,date1) /cfloop cfoutput #dateformat(date1)#br

Re: Find a date from a given date

2000-07-13 Thread Jacob
Got it. If i was to turn back one more page I would have seen DateAdd... Jacob At 11:52 AM 7/12/00 -0700, you wrote: How can I find the date 180 days from a give date? For example, if I am given the date 05/16/00, I want to return the date of 11/16/00. I have tried using DateDiff for a

Find a date from a given date

2000-07-12 Thread Jacob
How can I find the date 180 days from a give date? For example, if I am given the date 05/16/00, I want to return the date of 11/16/00. I have tried using DateDiff for a while, but I do not think it will work. checkdate = 05/16/00 #evaluate(180 + DateDiff("d",now(),checkdate.odr_date))#

RE: Find a date from a given date

2000-07-12 Thread Dan Haley
/cfoutput Ain't typeless data great! LOL . . . :) Dan -Original Message- From: Jacob [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 12, 2000 11:53 AM To: [EMAIL PROTECTED] Subject: Find a date from a given date How can I find the date 180 days from a give date? For example, if I am g

RE: Find a date from a given date

2000-07-12 Thread Zachary Bedell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 How can I find the date 180 days from a give date? DateAdd("d", 180, a_given_date) Check out the following URL for a very nice quick reference booklet for CF. All of the functions tags are listed w/ quick syntax. Very useful reference for