Lol unless this month is January; you'd need:

<cfset myDate = "1/" & Month(dateAdd("m",-1,now())) & "/" &
Year(dateAdd("m",-1,now()))> <cfoutput>#myDate#</cfoutput>

:-)

-----Original Message-----
From: Jared Rypka-Hauer - CMG, LLC [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 19 May 2005 2:54 
To: CF-Newbie
Subject: Re: HELP (ASAP!!)

Try this then...

<cfset myDate = "1/" & Month(dateAdd("m",-1,now())) & "/" & Year(Now())>
<cfoutput>#myDate#</cfoutput>

See support for the Date functions on the livedocs at
http://livedocs.macromedia.com for more info.

Laters,
J

On 5/19/05, Torrent Girl <[EMAIL PROTECTED]> wrote:
> 
> I am not getting it.
> 
> I need an actual date.
> 
> I need to calculate and output the first and last date of the previous

> month for any given month. In date format, not number of days.
> 
> 
> This - #DaysInMonth(now())# returns the # of days (31)
> 
> and this #01/#Month(now())#/#Year(Now())# gives me an error.
> 



--
---------------
-------------------------------------
Buy SQLSurveyor!
http://www.web-relevant.com/sqlsurveyor
Never make your developers open Enterprise Manager again.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
 Save $10 Download ZoneAlarm Security Suite 
http://www.houseoffusion.com/banners/view.cfm?bannerid=66

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:979
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to