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)
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
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
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))#
/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
-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
6 matches
Mail list logo