To get the date before, just do:
<cfset yesterdayMyDreamsSeemedSoFarWay = dateAdd("d",-1,now())>
This will simply go back one day from the current date.
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Joel Blanchette [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 3:18 PM
> To: CF-Talk
> Subject: RE: Date Function
>
>
> Yeah basically...Like tomorrow when the scheduler execute the script I
> need it to say if today is 1st of the month, the day before was...
>
>
>
> Joel
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 2:16 PM
> To: CF-Talk
> Subject: RE: Date Function
>
>
> I'm sorry, I'm not sure what you are asking. Are you asking
> how to get
> the
> previous day's date?
>
> Kathryn Butterly
> Web Developer
> Washington Mutual Finance
> 813 632-4490
> [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Joel Blanchette [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 3:11 PM
> To: CF-Talk
> Subject: Date Function
>
>
> Hello All,
> Here is a good one. I have been thinking about this for a while
> and I can not figure it out!
>
> I am doing a schedule thing and I need to see if let's say at the time
> it goes, if we are the 1st of the month to get yesterday's date. So I
> cab take that and format it with dateformat
>
> Does anyone know how this would be accomplished?
>
> Thanks,
>
> Joel
>
>
>
>
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists