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))#  gives me the 
answer of 123, but I would like the date.  Try variation of, but no luck.

Thanks in advance.
Jacob

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Find a date from a given date

2000-07-12 Thread Dan Haley

This is intended as humorous . . . but the code works; if you
can't handle humor, go back to work.  :) 

This is the way a CF programmer from a "traditional" programming background
will tell you to do it . . . 



#dateformat(date1)#
#dateformat(date2)#


Those of us who know how to program, but come from a Visual Basic background
will suggest . . . 



#dateformat(date1)#
#dateformat(date2)#


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 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))#  gives me the 
answer of 123, but I would like the date.  Try variation of, but no luck.

Thanks in advance.
Jacob


--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



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 questions like this.  (There should have
been a copy of this in your CFStudio box.)
http://www.allaire.com/documents/cf45docs/acrobatdocs/45refcard.pdf


Best regards,
Zac Bedell

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.3 for non-commercial use 
Comment: Please use PGP!!!

iQA/AwUBOWz4uwraVoMWBwRBEQKG1wCgiPjh1JgtkTuG0u4zQAbCgwQlVQcAn0js
hJVef93yMLTWTDFAfudM9OVA
=B8Un
-END PGP SIGNATURE-
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Find a date from a given date

2000-07-13 Thread Philip Arnold - ASP

> 
> 
> 
> #dateformat(date1)#
> #dateformat(date2)#
> 

Or, if you're a moron...







#dateformat(date1)#
#dateformat(date2)#


I've actually seen code like this from someone we got to do a tiny bit of
work for us... surprisingly, he wasn't with us for long...

Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



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

> 
> 
> 
> 
> 
> 
> #dateformat(date1)#
> #dateformat(date2)#
> 



--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



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 while, but I do not think it will work.
>
>checkdate = 05/16/00
>
>#evaluate(180 + DateDiff("d",now(),checkdate.odr_date))#  gives me the
>answer of 123, but I would like the date.  Try variation of, but no luck.
>
>Thanks in advance.
>Jacob
>
>--
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or 
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in 
>the body.


--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.